/* =====================================================
   AUTH PAGES - LOGIN & REGISTER
   ===================================================== */

/* ---- Container ---- */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0e30 0%, #2d1b4e 50%, #4a2c7a 100%);
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

/* Decorative background circles */
.login-container::before,
.login-container::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: #fff;
  pointer-events: none;
}
.login-container::before {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -150px;
}
.login-container::after {
  width: 400px;
  height: 400px;
  bottom: -150px;
  right: -100px;
}

/* ---- Card ---- */
.login-card {
  display: flex;
  width: 100%;
  max-width: 950px;
  min-height: 580px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

/* ---- Brand Side (Left) ---- */

.login-brand-side {
  flex: 1;
  background: linear-gradient(160deg, #2d1b4e 0%, #6c5ce7 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-brand-side::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -80px;
  right: -80px;
}
.login-brand-side::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  bottom: -60px;
  left: -60px;
}

.login-logo {
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.login-logo > div {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.login-logo > div:hover {
  transform: scale(1.05) rotate(3deg);
}

.login-brand-title {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.login-brand-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.7;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* Feature list */
.login-features {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.login-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.25s ease;
}

.login-features li:hover {
  background: rgba(255, 255, 255, 0.18);
}

.login-features li i {
  font-size: 1.1rem;
  color: #a8edea;
  flex-shrink: 0;
}

/* ---- Form Side (Right) ---- */
.login-form-side {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
  overflow-y: auto;
}

/* ---- Alerts ---- */
.alert-error,
.alert-success {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.alert-error.show,
.alert-success.show {
  display: flex;
  animation: slideDown 0.3s ease;
}

.alert-error {
  background: #fff5f5;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background: #f0faf4;
  color: #1e8449;
  border: 1px solid #c3e6cb;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Login Header ---- */
.login-header {
  margin-bottom: 1.75rem;
}

.login-title {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: #2d1b4e !important;
  margin-bottom: 0.35rem;
}

.login-subtitle {
  font-size: 0.9rem;
  color: #7f8c8d !important;
  margin: 0;
}

/* ---- Form ---- */
.login-form {
  width: 100%;
}

.form-group-login {
  margin-bottom: 1.25rem;
}

.form-label-login {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2d1b4e;
  margin-bottom: 0.45rem;
}

.input-group-login {
  position: relative;
}

.form-control-login {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(45, 27, 78, 0.15);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #2c3e50;
  background: #fafafa;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  outline: none;
  direction: inherit;
}

.form-control-login::placeholder {
  color: #b2bec3;
  font-size: 0.88rem;
}

.form-control-login:focus {
  border-color: #6c5ce7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

/* ---- Remember / Options ---- */
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2c3e50;
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #6c5ce7;
  cursor: pointer;
}

/* ---- Submit Button ---- */
.btn-login {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #2d1b4e 0%, #6c5ce7 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.35);
  margin-bottom: 1.5rem;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.5);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login.loading {
  opacity: 0.8;
  cursor: not-allowed;
  pointer-events: none;
}

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

/* ---- Divider ---- */
.login-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: #b2bec3;
  font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(45, 27, 78, 0.1);
}

/* ---- Social Buttons ---- */
.social-login {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
}

.btn-google {
  background: #fff;
  color: #555;
  border-color: rgba(0, 0, 0, 0.12);
}

.btn-google:hover {
  background: #fef3f2;
  border-color: #ea4335;
  color: #ea4335;
  transform: translateY(-2px);
}

.btn-microsoft {
  background: #fff;
  color: #555;
  border-color: rgba(0, 0, 0, 0.12);
}

.btn-microsoft:hover {
  background: #f0f4ff;
  border-color: #0078d4;
  color: #0078d4;
  transform: translateY(-2px);
}

/* ---- Register / Login Link ---- */
.register-link {
  text-align: center;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.register-link a {
  color: #6c5ce7;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.register-link a:hover {
  color: #2d1b4e;
  text-decoration: underline;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .login-card {
    flex-direction: column;
    max-width: 480px;
    min-height: unset;
    border-radius: 20px;
  }

  .login-brand-side {
    padding: 2.5rem 2rem;
  }

  .login-brand-title {
    font-size: 1.3rem !important;
  }

  .login-features {
    display: none;
  }

  .login-form-side {
    padding: 2rem 1.75rem;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 1rem 0.75rem;
  }

  .login-card {
    border-radius: 16px;
  }

  .login-brand-side {
    padding: 2rem 1.5rem;
  }

  .login-form-side {
    padding: 1.75rem 1.25rem;
  }

  .social-login {
    flex-direction: column;
  }

  .login-title {
    font-size: 1.4rem !important;
  }
}
