/* css/pages/login.css — Login page styles for MedPREP Admin (extracted from inline <style> for import consistency) */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      min-height: 100dvh;
      background: var(--bg-primary);
      font-family: var(--font-sans);
      color: var(--text-primary);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: var(--sp-4);
      -webkit-font-smoothing: antialiased;
    }

    /* Subtle grid background */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(var(--border-neutral) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-neutral) 1px, transparent 1px);
      background-size: 48px 48px;
      opacity: 0.3;
      pointer-events: none;
      z-index: 0;
    }

    /* Gold radial glow behind card */
    body::after {
      content: '';
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
      pointer-events: none;
      z-index: 0;
    }

    .login-wrap {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 380px;
    }

    /* ── Card ── */
    .login-card {
      background: var(--bg-card);
      border: 1px solid var(--gold-border);
      border-radius: var(--radius-lg);
      padding: var(--sp-8) var(--sp-6);
      box-shadow: var(--shadow-card), var(--shadow-gold);
    }

    /* ── Logo mark ── */
    .login-logo-mark {
      display: flex;
      justify-content: center;
      margin-bottom: var(--sp-5);
    }

    .login-logo-icon {
      width: 52px;
      height: 52px;
      background: var(--gold-glow);
      border: 1px solid var(--gold-border);
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--gold);
    }

    /* ── Heading ── */
    .login-heading {
      text-align: center;
      margin-bottom: var(--sp-8);
    }

    .login-title {
      font-size: var(--text-2xl);
      font-weight: 800;
      color: var(--gold);
      letter-spacing: -0.03em;
      line-height: 1.1;
      margin-bottom: var(--sp-2);
    }

    .login-subtitle {
      font-size: var(--text-sm);
      color: var(--text-secondary);
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    /* ── Divider ── */
    .login-divider {
      display: flex;
      align-items: center;
      gap: var(--sp-3);
      margin-bottom: var(--sp-5);
    }

    .login-divider::before,
    .login-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border-neutral);
    }

    .login-divider-text {
      font-size: var(--text-xs);
      color: var(--text-muted);
      letter-spacing: 0.06em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    /* ── Google button ── */
    .btn-google {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: var(--sp-3);
      width: 100%;
      padding: 14px var(--sp-5);
      background: #ffffff;
      color: #1f1f1f;
      border: none;
      border-radius: var(--radius-md);
      font-size: var(--text-base);
      font-weight: 600;
      font-family: var(--font-sans);
      cursor: pointer;
      transition: background var(--transition-fast), box-shadow var(--transition-fast);
      letter-spacing: -0.01em;
    }

    .btn-google:hover {
      background: #f0f0f0;
      box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    }

    .btn-google:active {
      background: #e0e0e0;
    }

    .btn-google:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    /* ── Loading spinner inside button ── */
    .btn-google .spinner {
      width: 18px;
      height: 18px;
      border: 2px solid rgba(0,0,0,0.15);
      border-top-color: #1f1f1f;
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
      flex-shrink: 0;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── Error banner ── */
    .login-error {
      margin-top: var(--sp-4);
      padding: var(--sp-3) var(--sp-4);
      background: rgba(239,68,68,0.08);
      border: 1px solid rgba(239,68,68,0.3);
      border-radius: var(--radius-md);
      display: none;
      align-items: flex-start;
      gap: var(--sp-3);
    }

    .login-error.visible {
      display: flex;
    }

    .login-error-icon {
      width: 18px;
      height: 18px;
      color: var(--danger);
      flex-shrink: 0;
      margin-top: 1px;
    }

    .login-error-text {
      font-size: var(--text-sm);
      color: var(--danger);
      line-height: 1.5;
    }

    /* ── Footer note ── */
    .login-footer {
      margin-top: var(--sp-6);
      text-align: center;
      font-size: var(--text-xs);
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* ── Full-page loading overlay ── */
    .page-loading {
      position: fixed;
      inset: 0;
      background: var(--bg-primary);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
    }

    .page-loading .spinner-large {
      width: 36px;
      height: 36px;
      border: 3px solid var(--border-neutral);
      border-top-color: var(--gold);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }
