/* ============================================================
   ShiftLink — Login / Auth Page Styles
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

/* LEFT PANEL — Branding */
.auth-branding {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  background: linear-gradient(
    145deg,
    rgba(0, 212, 170, 0.05) 0%,
    rgba(124, 111, 255, 0.08) 100%
  );
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.auth-branding::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,212,170,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.auth-branding::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124,111,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.brand-logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.brand-logo-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.brand-logo-tagline {
  font-size: 0.8rem;
  color: var(--accent-teal);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.brand-hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.brand-hero-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.brand-hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 380px;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.brand-feature-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.brand-feature-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.brand-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-shift-card {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-shift-card.day {
  background: var(--shift-day-bg);
  border-color: rgba(251,191,36,0.25);
  color: var(--shift-day);
}

.brand-shift-card.night {
  background: var(--shift-night-bg);
  border-color: rgba(129,140,248,0.25);
  color: var(--shift-night);
}

/* RIGHT PANEL — Form */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg-secondary);
  overflow-y: auto;
}

.auth-form-container {
  width: 100%;
  max-width: 440px;
}

.auth-tabs {
  display: flex;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 36px;
  border: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.auth-tab.active {
  background: var(--bg-card);
  color: var(--accent-teal);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-form-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-form-header {
  margin-bottom: 8px;
}

/* Shift selector buttons */
.shift-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shift-option {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.shift-option:hover {
  border-color: var(--border-accent);
  background: var(--accent-teal-dim);
}

.shift-option.selected.day {
  background: var(--shift-day-bg);
  border-color: var(--shift-day);
  box-shadow: 0 0 0 3px rgba(251,191,36,0.1);
}

.shift-option.selected.night {
  background: var(--shift-night-bg);
  border-color: var(--shift-night);
  box-shadow: 0 0 0 3px rgba(129,140,248,0.1);
}

.shift-option-icon { font-size: 1.5rem; }

.shift-option-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.shift-option-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Password toggle */
.input-password-wrapper {
  position: relative;
}

.input-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  transition: color var(--transition-fast);
}

.input-password-toggle:hover { color: var(--text-primary); }

.auth-form-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Mobile auth layout */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-branding {
    padding: 32px 24px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .brand-hero-title { font-size: 2rem; }

  .brand-features,
  .brand-footer { display: none; }

  .brand-hero { gap: 16px; }

  .auth-form-panel {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .auth-branding { padding: 24px 16px; }
  .auth-form-panel { padding: 24px 16px; }
}
