/* =====================================================================
   GradSlides Pro design system
   Shared by the marketing site, auth pages, dashboard and student forms.
   Brand: navy + gold. Gold is a fill/accent only; text on gold is navy
   (white-on-gold and gold-on-white fail contrast).
   ===================================================================== */

:root {
    /* Brand */
    --navy-950: #0B1326;
    --navy-900: #111C36;
    --navy-800: #1C2A4A;   /* primary brand navy */
    --navy-700: #2A3B63;
    --navy-600: #3B4F7D;
    --gold-600: #B4880D;
    --gold-500: #D4A017;   /* primary brand gold */
    --gold-400: #E5B93A;
    --gold-100: #FBF3DC;
    --gold-50:  #FDF9EE;

    /* Neutrals */
    --bg:        #F6F7FB;
    --surface:   #FFFFFF;
    --surface-2: #F9FAFC;
    --border:    #E3E7EF;
    --border-strong: #CDD3E0;
    --text:      #131A2B;
    --text-2:    #3E475A;
    --muted:     #6B7385;

    /* Status */
    --success: #15803D; --success-bg: #DCFCE7; --success-border: #BBF7D0;
    --warning: #A16207; --warning-bg: #FEF3C7; --warning-border: #FDE68A;
    --danger:  #B91C1C; --danger-bg:  #FEE2E2; --danger-border:  #FECACA;
    --info:    #1D4ED8; --info-bg:    #DBEAFE; --info-border:    #BFDBFE;

    /* Type */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

    /* Shape */
    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 18px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(17, 28, 54, 0.06);
    --shadow:    0 4px 14px -4px rgba(17, 28, 54, 0.12), 0 2px 4px -2px rgba(17, 28, 54, 0.06);
    --shadow-lg: 0 24px 48px -16px rgba(17, 28, 54, 0.22);
    --ring: 0 0 0 3px rgba(212, 160, 23, 0.35);

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 400 16px/1.6 var(--font-sans);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-optical-sizing: auto; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Logo ---------- */
.gsp-logo { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.2rem; color: var(--navy-800); text-decoration: none; letter-spacing: -0.02em; }
.gsp-logo:hover { color: var(--navy-800); }
.gsp-logo .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--navy-800); display: grid; place-items: center; flex: none; margin-right: .55rem; } /* margin, not gap: the wordmark is several text nodes */
.gsp-logo .mark svg { width: 18px; height: 18px; }
.gsp-logo .dot { color: var(--gold-500); }
.gsp-logo.on-dark { color: #fff; }
.gsp-logo.on-dark .mark { background: var(--gold-500); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid transparent;
    font: 600 .95rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease), color .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-900); color: #fff; }
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-400); color: var(--navy-950); }
.btn-secondary, .btn-white { background: var(--surface); color: var(--navy-800); border-color: var(--border-strong); }
.btn-secondary:hover, .btn-white:hover { background: var(--surface-2); border-color: var(--navy-600); color: var(--navy-900); }
.btn-ghost { background: transparent; color: var(--navy-700); }
.btn-ghost:hover { background: rgba(28, 42, 74, 0.06); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: var(--danger-border); }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #116632; color: #fff; }
.btn-sm { padding: .45rem .8rem; font-size: .85rem; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.02rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.label, .field > label { font-size: .875rem; font-weight: 600; color: var(--text-2); }
.hint { font-size: .8rem; color: var(--muted); }
.input, .select, .textarea, .form-control {
    width: 100%; padding: .72rem .9rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
    font: 400 1rem/1.4 var(--font-sans); transition: border-color .15s, box-shadow .15s;
}
.textarea, textarea.form-control { resize: vertical; min-height: 96px; }
.input::placeholder, .textarea::placeholder, .form-control::placeholder { color: #9AA1B2; }
.input:hover, .select:hover, .textarea:hover, .form-control:hover { border-color: var(--navy-600); }
.input:focus, .select:focus, .textarea:focus, .form-control:focus { outline: none; border-color: var(--gold-500); box-shadow: var(--ring); }
.select, select.form-control {
    appearance: none; padding-right: 2.4rem; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7385'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.17l3.71-3.94a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
}
.field-error { font-size: .8rem; color: var(--danger); min-height: 1em; }

/* ---------- Surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.panel-pad { padding: 1.5rem; }

/* ---------- Alerts & badges ---------- */
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid; font-size: .92rem; line-height: 1.45; margin-bottom: 1rem; }
.alert-success { background: var(--success-bg); border-color: var(--success-border); color: #14532D; }
.alert-error   { background: var(--danger-bg);  border-color: var(--danger-border);  color: #7F1D1D; }
.alert-info    { background: var(--info-bg);    border-color: var(--info-border);    color: #1E3A8A; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.approved { background: var(--success-bg); color: var(--success); }
.badge.pending  { background: var(--warning-bg); color: var(--warning); }
.badge.rejected { background: var(--danger-bg);  color: var(--danger); }

/* ---------- Centered auth / single-task pages ---------- */
.auth-shell {
    min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem;
    background:
        radial-gradient(900px 500px at 10% -10%, rgba(212, 160, 23, 0.10), transparent 60%),
        radial-gradient(800px 600px at 110% 110%, rgba(28, 42, 74, 0.10), transparent 60%),
        var(--bg);
}
.auth-card { width: 100%; max-width: 420px; padding: 2.25rem; }
.auth-card .gsp-logo { margin-bottom: 1.75rem; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: .35rem; }
.auth-card .lede { color: var(--muted); margin: 0 0 1.5rem; font-size: .95rem; }
.auth-foot { margin-top: 1.5rem; text-align: center; font-size: .85rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
