:root {
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --text-primary: #ffffff;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --border-color: #e9ecef;
  --sidebar-bg: #1a1d29;
  --dark-bg: #1a1d29;
  --sidebar-hover: #2a3a3231;
}

/* Login Page Styles */
.login-layout {
  min-height: 100vh;
  background: linear-gradient(135deg, #7bf0ff8a 0%, #0c2356d7 100%),
    url(../../assets/images/ParentTeacher.jpg) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 720px;
  width: 100%;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-height: 600px;
}

.login-brand {
  background: linear-gradient(
    135deg,
    var(--text-dark) 0%,
    var(--text-dark) 100%
  );
  color: var(--white);
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-brand::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>')
    repeat;
  opacity: 0.3;
}

.brand-content {
  text-align: center;
  z-index: 1;
  position: relative;
}

.brand-logo img {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.brand-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 11px;
  opacity: 0.9;
  line-height: 1.5;
  color: var(--white);
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  opacity: 0.9;
}

.feature-item i {
  font-size: 12.5px;
  width: 24px;
  text-align: center;
}

.login-form-container {
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form {
  width: 100%;
  max-width: 400px;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.form-subtitle {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12.5px;
  color: var(--text-light);
  font-size: 12.5px;
  z-index: 99;
  top: 50%;
  transform: translateY(-50%);
}

.auth-form .form-control {
  width: 100%;
  padding: 8px 8px 8px 48px;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  font-size: 12.5px;
  background: var(--white);
  transition: all 0.3s ease;
  outline: none;
}

.form-control,
.form-select,
select {
  width: 100%;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  font-size: 12.5px;
  background: var(--white);
  transition: all 0.3s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-green);
  border: 1px;
  box-shadow: 0 0 0 px rgba(44, 168, 73, 0.1);
}

.form-control.is-invalid {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper .form-control {
  padding-left: 48px; /* space for lock */
  padding-right: 40px; /* space for eye */
}

.password-toggle {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.3s ease;
  z-index: 99;
}

.password-toggle:hover {
  color: var(--primary-green);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-green);
  display: none;
}

.checkbox-label {
  font-size: 12.5px;
  color: var(--text-dark);
  cursor: pointer;
  margin-bottom: 0;
  display: none;
}

.forgot-password {
  font-size: 12.5px;
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: none;
}

.forgot-password:hover {
  color: var(--dark-green);
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  padding: 8px 24px;
  background: linear-gradient(
    135deg,
    var(--text-dark) 0%,
    var(--text-dark) 100%
  );
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(44, 168, 73, 0.3);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-text {
  font-size: 16px;
}

.btn-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-login:hover .btn-icon {
  transform: translateX(4px);
}

/* Login Page Responsive Design */
@media (max-width: 768px) {
  .login-container {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 20px;
  }

  .login-brand {
    padding: 40px 30px;
  }

  .brand-title {
    font-size: 21px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .login-form-container {
    padding: 40px 30px;
  }

  .form-title {
    font-size: 24px;
  }

  .form-subtitle {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .login-layout {
    padding: 10px;
  }

  .login-brand {
    padding: 30px 20px;
  }

  .login-form-container {
    padding: 30px 20px;
  }

  .brand-features {
    gap: 12px;
  }

  .feature-item {
    font-size: 13px;
  }
}

input::-ms-reveal,
input::-ms-clear {
  display: none !important;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-clear-button,
input[type="password"]::-webkit-reveal {
  display: none !important;
}

.swal2-actions > button {
  margin: 10px !important;
}
