/* ==========================================================================
   NTU AI ASSISTANT - MONOCHROME AUTH STYLES (login.css)
   ========================================================================== */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) 1.5rem 3rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.auth-card {
  max-width: 480px;
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
  animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-brand-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--border-color);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ==========================================================================
   DEMO ACCOUNTS QUICK LOGIN BUTTONS
   ========================================================================== */
.demo-accounts-box {
  background: var(--bg-glass);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.75rem;
}

.demo-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.demo-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-demo {
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}
.btn-demo:hover {
  border-color: var(--text-main);
  background: var(--bg-card);
  transform: translateY(-1px);
}

/* ==========================================================================
   INPUT GROUPS & PASSWORD TOGGLE
   ========================================================================== */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  pointer-events: none;
}

.input-with-icon .form-control {
  padding-left: 2.75rem;
  padding-right: 2.75rem;
}

.password-toggle {
  position: absolute;
  right: 1.1rem;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}
.password-toggle:hover {
  color: var(--text-main);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}
.auth-divider span {
  padding: 0 0.85rem;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-footer {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--text-main);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 480px) {
  .auth-wrapper {
    padding: calc(var(--header-height) + 1rem) 1rem calc(58px + 1.5rem);
  }
  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }
  .auth-title {
    font-size: 1.45rem;
  }
  .auth-brand-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
}
