/* ===== AUTH PAGES (login + logged_out) ===== */
/* Shared components (.gradient-bg, .glass-card, .slide-up, .spin, .primary-action-btn)
   are in shared/components.css. This file holds auth-specific polish only. */

/* ────────────── Brand header ────────────── */

.portal-name {
  color: #0d9488;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}

.version-badge {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #0d9488;
  background: rgba(13, 148, 136, 0.07);
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: 0.3rem;
  padding: 0.1rem 0.38rem;
  vertical-align: middle;
  margin-left: 0.2rem;
  text-transform: uppercase;
}

/* ────────────── Employees-only notice ────────────── */

.auth-notice {
  background: rgba(13, 148, 136, 0.05);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  color: #0f766e;
  line-height: 1.5;
}

.auth-notice svg {
  opacity: 0.7;
}

/* ────────────── Password toggle ────────────── */

.password-toggle {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: color 0.2s ease;
  line-height: 0;
}

.password-toggle:hover {
  color: #0d9488;
}

/* ────────────── Login page ────────────── */

.login-input {
  border: 1.5px solid rgba(0, 0, 0, 0.13);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background: rgba(255, 255, 255, 0.97);
  color: #111827;
  font-size: 0.9375rem;
}

.login-input:focus {
  outline: none;
  border-color: #0d9488;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.login-input:hover:not(:focus) {
  border-color: rgba(13, 148, 136, 0.35);
}

.login-input::placeholder {
  color: rgba(107, 114, 128, 0.5);
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(160deg, #0d9488 0%, #0c8278 55%, #0f766e 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow:
    0 4px 14px rgba(13, 148, 136, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.45s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 8px 22px rgba(13, 148, 136, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  filter: brightness(1.06);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 2px 8px rgba(13, 148, 136, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  letter-spacing: 0em;
}

.form-group {
  animation: slide-up 0.5s ease-out;
  animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.15s; }
.form-group:nth-child(2) { animation-delay: 0.25s; }
.form-group:nth-child(3) { animation-delay: 0.35s; }

.loading-overlay {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.95) 0%, rgba(15, 118, 110, 0.95) 100%);
  backdrop-filter: blur(12px);
}

/* Login spinner override (larger than global) */
.loading-overlay .spinner {
  width: 60px;
  height: 60px;
  border-top-color: white;
}

.pulse-dot {
  animation: pulse-opacity 1.5s ease-in-out infinite;
}

.pulse-dot-delay-2 {
  animation-delay: 0.2s;
}

.pulse-dot-delay-4 {
  animation-delay: 0.4s;
}

@keyframes pulse-opacity {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.error-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #7f1d1d;
  animation: slideDown 0.4s ease-out;
}

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