﻿/* Stratisk Auth Pages - simplified */

.auth-page {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 76px);
    padding: clamp(2rem, 4vw, 4rem) 0;
    overflow: hidden;
    background: radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.10), transparent 30%), radial-gradient(circle at 92% 8%, rgba(20, 184, 166, 0.10), transparent 28%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

    .auth-page .container {
        max-width: 1160px;
    }

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: center;
}

/* Left side */

.auth-intro {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.5rem);
    border: 1px solid rgba(219, 227, 238, 0.95);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.94)), radial-gradient(circle at 80% 18%, rgba(56, 189, 248, 0.12), transparent 32%);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
}

    .auth-intro::after {
        content: "";
        position: absolute;
        right: -8rem;
        bottom: -8rem;
        width: 18rem;
        height: 18rem;
        border-radius: 999px;
        background: rgba(37, 99, 235, 0.05);
        pointer-events: none;
    }

.auth-title {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin-bottom: 1rem;
    color: var(--ink);
    font-size: clamp(2.25rem, 4vw, 4rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.075em;
}

.auth-subtitle {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin-bottom: 0;
    color: #475569;
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    line-height: 1.75;
}

/* Feature pills */

.auth-feature-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.5rem;
}

.auth-feature-card {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .9rem;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

    .auth-feature-card::before {
        content: "";
        width: .48rem;
        height: .48rem;
        border-radius: 999px;
        background: var(--blue);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
    }

    .auth-feature-card strong {
        display: block;
        margin: 0;
        color: #334155;
        font-size: .86rem;
        font-weight: 850;
        letter-spacing: -.015em;
    }

    .auth-feature-card span {
        display: none;
    }

/* Right card */

.auth-card {
    width: 100%;
    padding: 0;
    border: 1px solid rgba(219, 227, 238, 0.95);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.10);
}

.auth-card-inner {
    padding: clamp(1.65rem, 3vw, 2.25rem);
    border-radius: 28px;
    background: #ffffff;
}

.auth-card h1 {
    margin-bottom: .55rem;
    color: var(--ink);
    font-size: clamp(1.85rem, 2.4vw, 2.3rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.055em;
}

.auth-card p {
    margin-bottom: 1.45rem;
    color: #64748b;
    font-size: .98rem;
    line-height: 1.65;
}

.auth-form {
    display: grid;
    gap: .95rem;
}

    .auth-form .form-floating > .form-control {
        min-height: 3.5rem;
        border: 1px solid #dbe3ee;
        border-radius: 15px;
        color: var(--ink);
        background-color: #f8fafc;
        font-size: .95rem;
    }

        .auth-form .form-floating > .form-control:hover {
            border-color: #cbd5e1;
            background-color: #ffffff;
        }

        .auth-form .form-floating > .form-control:focus {
            border-color: rgba(37, 99, 235, .62);
            background-color: #ffffff;
            box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .12);
        }

    .auth-form .form-floating > label {
        color: #64748b;
        font-size: .93rem;
    }

.auth-check {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: #475569;
    font-size: .92rem;
}

    .auth-check input {
        width: 1rem;
        height: 1rem;
        margin: 0;
        border-color: #cbd5e1;
    }

        .auth-check input:checked {
            border-color: var(--blue);
            background-color: var(--blue);
        }

.auth-submit {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: .85rem 1rem;
    border: 0;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), #1d4ed8);
    box-shadow: 0 16px 35px rgba(37, 99, 235, .24);
    font-size: .95rem;
    font-weight: 850;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

    .auth-submit:hover {
        transform: translateY(-1px);
        color: #ffffff;
        box-shadow: 0 20px 45px rgba(37, 99, 235, .30);
        filter: saturate(1.05);
    }

    .auth-submit:active {
        transform: translateY(0);
        box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
    }

.auth-links {
    display: grid;
    gap: .55rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(219, 227, 238, .95);
}

    .auth-links a {
        color: var(--blue);
        font-size: .92rem;
        font-weight: 800;
        text-decoration: none;
    }

        .auth-links a:hover {
            color: #1d4ed8;
            text-decoration: underline;
        }

.auth-validation-summary,
.auth-form .text-danger {
    color: #dc2626 !important;
    font-size: .88rem;
}

    .auth-validation-summary ul {
        margin-bottom: 0;
        padding-left: 1.1rem;
    }

/* Responsive */

@media (max-width: 991px) {
    .auth-page {
        align-items: flex-start;
        min-height: auto;
        padding: 1.5rem 0 3rem;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-card {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .auth-page {
        padding: 1rem 0 2.5rem;
    }

    .auth-intro,
    .auth-card,
    .auth-card-inner {
        border-radius: 22px;
    }

    .auth-intro {
        padding: 1.35rem;
    }

    .auth-title {
        font-size: 2.35rem;
        letter-spacing: -.06em;
    }

    .auth-subtitle {
        font-size: .98rem;
    }

    .auth-feature-grid {
        gap: .5rem;
    }

    .auth-feature-card {
        padding: .55rem .75rem;
    }

    .auth-card-inner {
        padding: 1.35rem;
    }
}

/* Registration flow selector */
.auth-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: .9rem;
    color: var(--blue);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.auth-flow-chooser {
    display: grid;
    gap: .9rem;
    margin-top: 1.3rem;
}

.auth-flow-card {
    display: grid;
    gap: .4rem;
    padding: 1.05rem;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    color: var(--ink);
    background: #f8fafc;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

    .auth-flow-card:hover {
        transform: translateY(-1px);
        border-color: rgba(37, 99, 235, .42);
        color: var(--ink);
        background: #ffffff;
        box-shadow: 0 18px 40px rgba(15, 23, 42, .08);
        text-decoration: none;
    }

    .auth-flow-card.primary {
        border-color: rgba(37, 99, 235, .36);
        background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(255, 255, 255, .98));
    }

    .auth-flow-card strong {
        display: block;
        font-size: 1.05rem;
        font-weight: 900;
        letter-spacing: -.035em;
    }

    .auth-flow-card span:not(.auth-flow-step) {
        color: #64748b;
        font-size: .92rem;
        line-height: 1.5;
    }

.auth-flow-step {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: .3rem .58rem;
    border-radius: 999px;
    color: var(--blue);
    background: rgba(37, 99, 235, .09);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-flow-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem;
    margin-bottom: 1.25rem;
    padding: .35rem;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #f8fafc;
}

    .auth-flow-switch a {
        display: inline-flex;
        justify-content: center;
        padding: .62rem .8rem;
        border-radius: 999px;
        color: #64748b;
        font-size: .82rem;
        font-weight: 900;
        text-decoration: none;
        transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
    }

        .auth-flow-switch a:hover {
            color: var(--blue);
            text-decoration: none;
        }

        .auth-flow-switch a.is-active {
            color: #ffffff;
            background: linear-gradient(135deg, var(--blue), #1d4ed8);
            box-shadow: 0 12px 24px rgba(37, 99, 235, .24);
        }

.auth-field-with-note {
    display: grid;
    gap: .4rem;
}

    .auth-field-with-note p {
        margin: 0;
        padding: 0 .15rem;
        color: #64748b;
        font-size: .78rem;
        line-height: 1.45;
    }

.auth-links-standalone {
    margin-top: 1.35rem;
}

.auth-form .form-floating > .form-select {
    min-height: 3.5rem;
    border: 1px solid #dbe3ee;
    border-radius: 15px;
    color: var(--ink);
    background-color: #f8fafc;
    font-size: .95rem;
}

    .auth-form .form-floating > .form-select:hover {
        border-color: #cbd5e1;
        background-color: #ffffff;
    }

    .auth-form .form-floating > .form-select:focus {
        border-color: rgba(37, 99, 235, .62);
        background-color: #ffffff;
        box-shadow: 0 0 0 .22rem rgba(37, 99, 235, .12);
    }

.auth-field-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .85rem;
}

@media (max-width: 575px) {
    .auth-flow-switch {
        border-radius: 18px;
        grid-template-columns: 1fr;
    }

    .auth-field-grid {
        grid-template-columns: 1fr;
    }
}
