/* ====================================================================
   NavDrive — auth.css   (Light theme)
   ==================================================================== */

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-base);
}

/* ─── Left panel ─────────────────────────────────────────────────────────────*/
.auth-left {
  background: linear-gradient(145deg, #522258 0%, #8C3061 30%, #C63C51 60%, #D95F59 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.05);
  top: -120px;
  right: -120px;
}
.auth-left::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.05);
  bottom: -80px;
  left: -80px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.auth-brand-icon {
  width: 40px;
  height: 40px;
  background: rgb(255 255 255 / 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.auth-brand-icon svg { width: 22px; height: 22px; color: #fff; }
.auth-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.auth-hero { position: relative; z-index: 1; }
.auth-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.auth-hero h1 span {
  display: block;
  color: rgb(255 255 255 / 0.7);
}
.auth-hero p {
  font-size: 1rem;
  color: rgb(255 255 255 / 0.75);
  max-width: 320px;
  line-height: 1.6;
}

.auth-features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-feature-icon {
  width: 36px;
  height: 36px;
  background: rgb(255 255 255 / 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-feature-icon svg { width: 16px; height: 16px; color: rgb(255 255 255 / 0.9); }
.auth-feature span {
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.85);
  font-weight: 500;
}

/* ─── Right panel ────────────────────────────────────────────────────────────*/
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  overflow-y: auto;
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-card-title {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.auth-card-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.auth-card-sub a {
  color: var(--primary);
  font-weight: 500;
}

/* Error alert */
.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--danger-light);
  border: 1px solid #FECACA;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  animation: shake 0.35s ease;
}
.auth-error svg { width: 16px; height: 16px; color: var(--danger); flex-shrink: 0; margin-top: 1px; }
.auth-error-msg { font-size: 0.875rem; color: #991B1B; line-height: 1.4; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Password input */
.password-wrapper {
  position: relative;
}
.password-wrapper .form-input { padding-right: 40px; }
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-toggle:hover { color: var(--text-primary); }
.password-toggle svg { width: 15px; height: 15px; }

/* Password strength */
.strength-bars {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.strength-bar {
  flex: 1;
  height: 3px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  transition: background 0.3s;
}
.strength-bar.weak   { background: var(--danger); }
.strength-bar.medium { background: var(--warning); }
.strength-bar.strong { background: var(--success); }

/* Auth footer */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Button spinner */
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-loading .spinner { width: 15px; height: 15px; border-width: 2px; border-color: rgb(255 255 255 / 0.3); border-top-color: #fff; }

@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 32px 20px; }
}
