/* Queens LMS — shared auth screens */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --auth-ink: #1c2a3a;
    --auth-muted: #5f6b7a;
    --auth-line: #e4e8ee;
    --auth-surface: #ffffff;
    --auth-soft: #f3f6f9;
    --auth-accent: #1f4e79;
    --auth-accent-soft: #e8f0f7;
    --auth-radius: 16px;
    --auth-shadow: 0 18px 40px rgba(28, 42, 58, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.auth-body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--auth-ink);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(31, 78, 121, 0.14), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(31, 107, 74, 0.08), transparent 50%),
        linear-gradient(165deg, #eef3f8 0%, #f7f9fb 45%, #e8eef4 100%);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.auth-frame {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--auth-surface);
    border: 1px solid var(--auth-line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--auth-shadow);
}

.auth-frame--solo {
    grid-template-columns: 1fr;
    max-width: 460px;
    width: min(460px, 100%);
}

.auth-visual {
    position: relative;
    min-height: 100%;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background: #1c2a3a;
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(165deg, rgba(28, 42, 58, 0.88) 0%, rgba(31, 78, 121, 0.82) 55%, rgba(28, 42, 58, 0.9) 100%),
        var(--auth-hero, url('/logo.png')) center / min(68%, 280px) no-repeat;
    background-color: #1c2a3a;
    z-index: 0;
}

.auth-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(232, 240, 247, 0.12), transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(31, 78, 121, 0.35), transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.auth-visual > * {
    position: relative;
    z-index: 1;
}

.auth-visual__eyebrow {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.auth-visual__title {
    margin: 0 0 0.65rem;
    font-family: 'Fraunces', serif;
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    max-width: 14ch;
}

.auth-visual__copy {
    margin: 0;
    max-width: 28ch;
    font-size: 0.98rem;
    line-height: 1.55;
    opacity: 0.9;
}

.auth-panel {
    padding: 2.1rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--auth-ink);
    margin-bottom: 1.5rem;
}

.auth-brand img {
    width: 42px;
    height: auto;
    display: block;
}

.auth-brand span {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: var(--auth-accent-soft);
    color: var(--auth-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    width: fit-content;
}

.auth-title {
    margin: 0 0 0.35rem;
    font-family: 'Fraunces', serif;
    font-size: clamp(1.55rem, 2vw, 1.9rem);
    font-weight: 700;
    color: var(--auth-ink);
    line-height: 1.2;
}

.auth-subtitle {
    margin: 0 0 1.35rem;
    color: var(--auth-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-form {
    display: grid;
    gap: 0.9rem;
}

.auth-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.84rem;
    font-weight: 650;
    color: var(--auth-ink);
}

.auth-field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.auth-field-label-row label {
    margin: 0;
}

.auth-field-label-row a {
    font-size: 0.82rem;
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-field-label-row a:hover {
    text-decoration: underline;
}

.auth-input {
    width: 100%;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    background: #fff;
    color: var(--auth-ink);
    padding: 0.78rem 0.95rem;
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #c9d7e6;
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.1);
}

.auth-input::placeholder {
    color: #9aa6b4;
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.25rem;
    border: 0;
    border-radius: 12px;
    background: var(--auth-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.auth-submit:hover {
    background: #183d5f;
    color: #fff;
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    margin: 0.35rem 0 0.15rem;
    color: var(--auth-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    height: 1px;
    background: var(--auth-line);
}

.auth-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    background: #fff;
    color: var(--auth-ink);
    font: inherit;
    font-weight: 650;
    font-size: 0.92rem;
    padding: 0.78rem 1rem;
    cursor: not-allowed;
    opacity: 0.92;
    position: relative;
}

.auth-google-btn svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.auth-google-btn__soon {
    display: none;
}

.auth-google-note {
    display: none;
}

.auth-footer {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    justify-content: space-between;
    align-items: center;
    color: var(--auth-muted);
    font-size: 0.86rem;
}

.auth-footer a {
    color: var(--auth-accent);
    font-weight: 650;
    text-decoration: none;
}

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

.auth-alert {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid #f0d5d5;
    background: #fff5f5;
    color: #8a2f2f;
    font-size: 0.88rem;
    line-height: 1.4;
}

.auth-alert--success {
    border-color: #cfe6d9;
    background: #f2faf6;
    color: #1f6b4a;
}

.auth-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.auth-links-row a {
    color: var(--auth-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
}

.auth-links-row a:hover {
    color: var(--auth-accent);
}

@media (max-width: 860px) {
    .auth-frame {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 180px;
        padding: 1.35rem 1.4rem;
    }

    .auth-visual__title {
        max-width: none;
        font-size: 1.45rem;
    }

    .auth-panel {
        padding: 1.5rem 1.25rem 1.35rem;
    }
}
