* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url("../Images/STI-LOGIN.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  padding: 1rem;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, #f6ecbd 0%, #ece386 25%, #e3dd6d 50%);
  opacity: 0.8;
  z-index: 1;
}

.login-container {
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 2;
  padding: 1rem;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.68);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(1px);
}

.logo-section {
  width: 100%;
  max-width: 200px;
  background: rgba(246, 236, 189, 0.3);
  border-radius: 15px;
  padding: 1rem;
}

.logo-container img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.form-container {
  width: 100%;
  padding: 0 1rem;
}

h2 {
  color: #003d82;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.subtitle {
  color: #666;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1rem;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #0056b3;
  font-size: 0.9rem;
}

.toggle-password {
  left: auto !important;
  right: 12px !important;
  cursor: pointer;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #003d82;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 0.875rem 0.875rem 35px;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
  transition: all 0.3s ease;
}

.login-btn {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  background: linear-gradient(135deg, #0056b3, #003d82);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-btn:hover {
  background: linear-gradient(135deg, #003d82, #002855);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 20px;
  background: lightblue;
  border: 2px solid lightblue;
  color: #002347;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #002347;
  color: white;
}

.back-btn i {
  font-size: 16px;
}

.error-message {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
  background: rgba(220, 53, 69, 0.1);
  padding: 0.8rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.error-message i {
  font-size: 1.1rem;
}

/* Small - ≥576px */
@media (min-width: 576px) {
  .login-container {
    padding: 1.5rem;
  }

  .content-wrapper {
    padding: 2rem;
  }

  .logo-section {
    max-width: 250px;
  }

  .form-container {
    max-width: 400px;
  }

  h2 {
    font-size: 1.875rem;
  }
}

/* Medium - ≥768px */
@media (min-width: 768px) {
  .login-container {
    max-width: 900px;
    padding: 2rem;
  }

  .content-wrapper {
    flex-direction: row;
    justify-content: space-between;
    padding: 2.5rem;
    gap: 2.5rem;
  }

  .logo-section {
    flex: 0 0 300px;
    max-width: 300px;
  }

  .form-container {
    flex: 1;
    padding: 0;
  }

  h2 {
    text-align: left;
    font-size: 2rem;
  }

  .subtitle {
    text-align: left;
    font-size: 1rem;
  }
}

/* Large - ≥992px */
@media (min-width: 992px) {
  .content-wrapper {
    padding: 3rem;
    gap: 3rem;
  }

  .logo-section {
    flex: 0 0 350px;
    max-width: 350px;
  }

  .form-group input {
    padding: 1rem 1rem 1rem 45px;
    font-size: 1rem;
  }

  .input-icon i {
    left: 15px;
    font-size: 1rem;
  }

  .login-btn {
    padding: 1rem;
    font-size: 1.1rem;
  }

  .back-btn {
    margin: 0;
    font-size: 1.1rem;
  }
}

/* Extra Large - ≥1200px */
@media (min-width: 1200px) {
  .login-container {
    max-width: 1100px;
  }

  .content-wrapper {
    gap: 4rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }
}
