/* auth.css — login / forgot / reset pages (area "auth"). Reset is in core.css.
   Login is a wide two-panel card (.sc-login--split); forgot/reset reuse the
   plain narrow .sc-login card. Background is light with a soft SVG pattern. */

.sc-auth {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 24px;
    background-color: var(--bg);
    /* Two soft brand glows + a faint plus-grid pattern — all light. */
    background-image:
        radial-gradient(820px 540px at 6% -12%, var(--accent-soft), transparent 60%),
        radial-gradient(760px 560px at 106% 114%, rgba(251, 191, 22, .10), transparent 58%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 15v14M15 22h14' stroke='%231b2845' stroke-opacity='0.045' stroke-width='1.2'/%3E%3C/svg%3E");
}

.sc-auth__wrap { width: 100%; max-width: 400px; }
.sc-auth__wrap--login { max-width: 900px; }

/* The card */
.sc-login {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 40px 34px 32px;
    box-shadow: 0 24px 60px -12px rgba(27, 40, 69, .18);
}

/* --- Two-panel split (login only) -------------------------------------- */
.sc-login--split { padding: 0; display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; }
/* Taller card on gray sites (OKTA), where the panel has less content. */
.sc-login--split.sc-login--tall { min-height: 520px; }

.sc-login__aside {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; gap: 16px;
    padding: 48px 42px;
    background: linear-gradient(165deg, var(--accent-soft) 0%, #fff 88%);
    border-right: 1px solid var(--border-light);
}
.sc-login__main {
    display: flex; flex-direction: column; justify-content: center;
    padding: 48px 42px;
}

.sc-login__welcome h2 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 700; color: var(--text-strong); letter-spacing: -.01em; }
.sc-login__welcome p { margin: 0; max-width: 32ch; color: var(--text-muted); font-size: .92rem; line-height: 1.55; }

/* --- Brand / heading --------------------------------------------------- */
.sc-login__brand { text-align: center; margin-bottom: 18px; }
.sc-login__logo { max-height: 54px; max-width: 220px; display: inline-block; }
.sc-login__site { font-weight: 700; font-size: 1.25rem; color: var(--text-strong); }
/* In the split aside the brand is left-aligned. */
.sc-login__aside .sc-login__brand { text-align: left; margin-bottom: 6px; }

.sc-login__title { text-align: center; margin: 0 0 5px; font-size: 1.42rem; font-weight: 700; color: var(--text-strong); letter-spacing: -.01em; }
.sc-login__sub { text-align: center; color: var(--text-faint); font-size: .86rem; margin: 0 0 28px; }
.sc-login__main .sc-login__title, .sc-login__main .sc-login__sub { text-align: left; }

/* --- OKTA (default action) --------------------------------------------- */
.sc-login__okta {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    text-decoration: none; background: var(--navy); color: #fff;
    font-weight: 600; font-size: .92rem; padding: 15px 16px; border-radius: var(--radius);
    box-shadow: 0 8px 20px -6px rgba(27, 40, 69, .35);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.sc-login__okta:hover { background: var(--navy-hover); transform: translateY(-1px); box-shadow: 0 11px 24px -6px rgba(27, 40, 69, .42); }
.sc-login__okta svg { width: 17px; height: 17px; }

.sc-login__toggle {
    display: block; width: 100%; margin: 0; padding: 4px;
    background: none; border: 0; cursor: pointer;
    color: var(--text-muted); font: inherit; font-size: .84rem; font-weight: 400;
}
.sc-login__toggle:hover { color: var(--text-strong); text-decoration: underline; }

/* --- Email / password form --------------------------------------------- */
/* --- graytalentpool.tv chooser (Job Seekers / Applicants / Hiring Managers) */
.sc-login__paths { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.sc-login__path {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border: 1px solid var(--border-light); border-radius: var(--radius);
    background: #fff; color: var(--text-strong); text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.sc-login__path:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(27, 40, 69, .3); }
.sc-login__path-icon {
    flex: none; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--accent-soft); color: var(--accent);
}
.sc-login__path-icon svg { width: 20px; height: 20px; }
.sc-login__path-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sc-login__path-text strong { font-size: .92rem; font-weight: 600; }
.sc-login__path-text span { font-size: .8rem; color: var(--text-muted); }
.sc-login__path-go { flex: none; width: 16px; height: 16px; color: var(--text-faint); }
.sc-login__path--primary { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 8px 20px -6px rgba(27, 40, 69, .35); }
.sc-login__path--primary:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
.sc-login__path--primary .sc-login__path-icon { background: rgba(255, 255, 255, .14); color: #fff; }
.sc-login__path--primary .sc-login__path-text span,
.sc-login__path--primary .sc-login__path-go { color: rgba(255, 255, 255, .75); }
.sc-login__toggle--quiet { font-size: .78rem; color: var(--text-faint); margin-bottom: 4px; }
.sc-login__foot a { color: inherit; text-decoration: underline; }
.sc-login__foot a:hover { color: var(--accent); }

.sc-login__form { display: flex; flex-direction: column; gap: 16px; }
.sc-login__form.is-hidden { display: none; }
.sc-login__or {
    display: flex; align-items: center; text-align: center;
    color: var(--text-faint); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
    margin: 18px 0 10px;
}
.sc-login__or::before, .sc-login__or::after { content: ""; flex: 1; height: 1px; background: var(--border-light); }
.sc-login__or span { padding: 0 12px; }

.sc-login__field { display: flex; flex-direction: column; gap: 6px; }
.sc-login__field > span { font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.sc-login__form input {
    font: inherit; font-size: .92rem; padding: 13px 14px;
    border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text);
    transition: border-color .12s ease, box-shadow .12s ease;
}
.sc-login__form input::placeholder { color: var(--text-faint); }
.sc-login__form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.sc-login__form button {
    font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; margin-top: 4px;
    padding: 13px 16px; border: 0; border-radius: var(--radius); background: var(--navy); color: #fff;
    transition: background .15s ease;
}
.sc-login__form button:hover { background: var(--navy-hover); }
.sc-login__error { color: var(--danger); font-size: .82rem; margin: 0; text-align: center; }
.sc-login__note { color: var(--success); font-size: .84rem; margin: 0; text-align: center; line-height: 1.45; }

.sc-login__forgot { text-align: center; margin-top: 2px; color: var(--text-faint); font-size: .82rem; text-decoration: none; }
.sc-login__forgot:hover { color: var(--accent); text-decoration: underline; }

.sc-login__back { text-align: center; margin: 20px 0 0; }
.sc-login__back a { color: var(--accent); font-size: .84rem; font-weight: 600; text-decoration: none; }
.sc-login__back a:hover { text-decoration: underline; }

.sc-login__foot { text-align: center; color: var(--text-faint); font-size: .76rem; margin: 22px 0 0; }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 760px) {
    .sc-auth__wrap--login { max-width: 440px; }
    .sc-login--split { grid-template-columns: 1fr; }
    .sc-login--split.sc-login--tall { min-height: 0; }
    .sc-login__aside {
        padding: 30px 30px 22px; gap: 10px;
        border-right: 0; border-bottom: 1px solid var(--border-light);
    }
    .sc-login__welcome h2 { font-size: 1.3rem; }
    .sc-login__welcome p { max-width: none; font-size: .88rem; }
    .sc-login__deco { display: none; }
    .sc-login__main { padding: 28px 30px 32px; }
}

@media (max-width: 440px) {
    .sc-auth { padding: 16px; align-items: flex-start; padding-top: 28px; }
    .sc-login:not(.sc-login--split) { padding: 30px 24px; }
    .sc-login__aside { padding: 26px 22px 20px; }
    .sc-login__main { padding: 24px 22px 28px; }
}
