/* =========================================================
   PACE AUTHENTICATION
   Matches the main PACE workspace visual language.
   ========================================================= */

:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-soft: #f8fafb;
    --text: #18212b;
    --muted: #72808e;
    --border: #e4e9ee;
    --primary: #2f7d5a;
    --primary-dark: #256548;
    --primary-soft: #e8f4ee;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    background: var(--bg);
}

button,
input {
    font: inherit;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 18px;
    background: var(--bg);
}

.auth-wrapper {
    width: 100%;
    max-width: 430px;
}

.auth-card {
    padding: 42px 40px 32px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(20, 30, 40, 0.06);
}

.auth-brand {
    text-align: center;
}

.auth-logo-slot {
    width: 120px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: transparent;
}

.auth-brand h1 {
    margin: 9px 0 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.auth-brand p {
    max-width: 300px;
    margin: 8px auto 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.auth-message {
    margin-top: 22px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.auth-message.success {
    border: 1px solid #cde2d4;
    background: #f1faf4;
    color: #2d6848;
}

.auth-message.error {
    border: 1px solid #ebd0d0;
    background: #fff5f5;
    color: #a34747;
}

.auth-form {
    margin-top: 26px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 13px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.form-group input:focus {
    border-color: #70aa8d;
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(47, 125, 90, 0.08);
}

.auth-submit {
    width: 100%;
    height: 46px;
    margin-top: 4px;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition:
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.auth-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(47, 125, 90, 0.16);
}

.auth-footer {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #edf0f2;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 750;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-security-note {
    margin-top: 16px;
    color: #8a96a1;
    text-align: center;
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 520px) {
    .auth-page {
        padding: 14px;
    }

    .auth-card {
        padding: 32px 22px 28px;
    }

    .auth-logo-slot {
        width: 110px;
        height: 64px;
    }
}


.auth-review {
    margin-top: 6px;
}

.auth-review-kicker {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.auth-review h2 {
    margin: 0;
    color: var(--text);
    font-size: 23px;
    line-height: 1.25;
}

.auth-review-intro {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.auth-review-context {
    margin-top: 16px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
}

.auth-review-list {
    display: grid;
    gap: 7px;
    max-height: 260px;
    overflow-y: auto;
    margin-top: 12px;
    padding-right: 2px;
}

.auth-review-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    transition: .16s ease;
}

.auth-review-item:hover {
    border-color: var(--primary);
    background: var(--surface-soft);
}

.auth-review-checkbox {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.auth-review-checkbox:checked + .auth-review-item-content {
    opacity: .62;
}

.auth-review-item-content {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.auth-review-category {
    color: var(--primary);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.auth-review-label {
    color: var(--text);
    font-size: 11px;
    line-height: 1.45;
}

.auth-review-note {
    margin-top: 12px;
    padding: 10px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--primary-soft);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.auth-review-actions {
    margin-top: 14px;
}

.auth-review-cancel-form {
    margin-top: 8px;
}

.auth-review-cancel-button {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.auth-review-cancel-button:hover {
    border-color: var(--primary);
}

.auth-review-actions .auth-submit:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-internal-notice {
    margin: 16px auto 0;
    max-width: 360px;
    padding: 10px 12px;
    border: 1px solid #dce7e1;
    border-radius: 10px;
    background: #f3f8f5;
    color: #53655c;
    font-size: 10px;
    line-height: 1.5;
    text-align: left;
}

.auth-internal-notice strong {
    color: #2f5944;
    font-weight: 800;
}


/* =========================================================
   PACE LOGIN — CLEAN MODERN REFRESH
   ========================================================= */
.auth-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 15%, rgba(47,125,90,.07), transparent 34%),
        radial-gradient(circle at 85% 82%, rgba(47,125,90,.05), transparent 30%),
        #f6f8f9;
}

.auth-page::before,
.auth-page::after {
    content: '';
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
}
.auth-page::before {
    width: 420px;
    height: 420px;
    top: -220px;
    right: -150px;
    border: 1px solid rgba(24,33,43,.05);
}
.auth-page::after {
    width: 300px;
    height: 300px;
    bottom: -180px;
    left: -120px;
    border: 1px solid rgba(24,33,43,.04);
}

.auth-wrapper {
    max-width: 410px;
}

.auth-card {
    position: relative;
    padding: 38px 38px 28px;
    border: 1px solid rgba(24,33,43,.08);
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 70px rgba(20,30,40,.09);
}

.auth-logo-slot {
    width: 58px;
    height: 58px;
    margin: 0 auto 17px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-soft);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.auth-logo-slot::before {
    content: 'P';
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--primary);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.auth-brand h1 {
    font-size: 25px;
    letter-spacing: -.035em;
}

.auth-brand p {
    font-size: 12px;
}

.auth-internal-notice {
    margin-top: 15px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.auth-internal-notice strong {
    color: var(--text);
}

.auth-form {
    margin-top: 24px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group input {
    height: 48px;
    border-radius: 12px;
    background: #fbfcfd;
}

.form-group input:hover {
    border-color: #cfd7de;
}

.auth-submit {
    height: 48px;
    margin-top: 5px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(47,125,90,.15);
}

.auth-submit:focus-visible {
    outline: 3px solid rgba(47,125,90,.16);
    outline-offset: 2px;
}

.auth-footer {
    margin-top: 18px;
    padding-top: 18px;
}

.auth-security-note {
    margin-top: 12px;
}

/* =========================================================
   PACE AUTH — QUIET PROFESSIONAL LOGIN FINISH
   ========================================================= */
.auth-card{overflow:hidden}.auth-brand{padding-top:2px}.auth-brand h1{font-weight:800}.auth-form .form-group input{box-shadow:inset 0 1px 1px rgba(24,33,43,.02)}.auth-submit{background:var(--primary);letter-spacing:.01em}.auth-submit:hover{background:var(--primary-dark)}
