/*
|--------------------------------------------------------------------------
| VuSpaces Client Authentication
|--------------------------------------------------------------------------
|
| Shared styles for the client login and future account-access pages.
|
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --vs-forest: #173f35;
    --vs-forest-dark: #0e2d26;
    --vs-forest-soft: #28574a;
    --vs-terracotta: #c85f3d;
    --vs-terracotta-dark: #a9492e;
    --vs-cream: #f8f5ef;
    --vs-stone: #efe9df;
    --vs-sage: #dce8e1;
    --vs-white: #ffffff;
    --vs-ink: #26322e;
    --vs-muted: #69746f;
    --vs-line: #ddd8cf;
    --vs-error: #9f2f2f;
    --vs-error-bg: #fff1ef;
    --vs-error-line: #efc7c0;
    --vs-shadow: 0 28px 70px rgba(14, 45, 38, 0.14);
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--vs-ink);
    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(200, 95, 61, 0.11),
            transparent 30%
        ),
        var(--vs-cream);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.client-auth-shell {
    width: min(1180px, calc(100% - 48px));
    min-height: min(760px, calc(100vh - 48px));
    margin: 24px auto;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
    overflow: hidden;
    border: 1px solid rgba(23, 63, 53, 0.08);
    border-radius: 28px;
    background: var(--vs-white);
    box-shadow: var(--vs-shadow);
}

.client-auth-brand-panel {
    position: relative;
    min-height: 710px;
    padding: 46px 52px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--vs-white);
    background:
        linear-gradient(
            145deg,
            rgba(14, 45, 38, 0.99),
            rgba(23, 63, 53, 0.95)
        );
}

.client-auth-brand-panel::before {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -150px;
    top: -120px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: "";
}

.client-auth-brand-panel::after {
    position: absolute;
    width: 280px;
    height: 280px;
    left: -95px;
    bottom: -130px;
    border-radius: 50%;
    background: rgba(200, 95, 61, 0.14);
    content: "";
}

.client-auth-logo,
.client-auth-mobile-logo {
    position: relative;
    z-index: 1;
    width: fit-content;
    color: var(--vs-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -1.5px;
    text-decoration: none;
}

.client-auth-mobile-logo {
    display: none;
    color: var(--vs-forest);
}

.client-auth-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 510px;
    margin: auto 0;
}

.client-auth-eyebrow {
    margin-bottom: 15px;
    color: var(--vs-terracotta);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.client-auth-brand-copy h1 {
    max-width: 510px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(43px, 4.6vw, 64px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.03;
}

.client-auth-brand-copy > p {
    max-width: 500px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    line-height: 1.75;
}

.client-auth-benefits {
    margin: 31px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
    list-style: none;
}

.client-auth-benefits li {
    position: relative;
    padding-left: 29px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.client-auth-benefits li::before {
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(220, 232, 225, 0.15);
    color: #cfe2d8;
    content: "✓";
    font-size: 10px;
    font-weight: 800;
}

.client-auth-brand-footer {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    letter-spacing: 0.03em;
}

.client-auth-form-panel {
    padding: 55px 66px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            180deg,
            rgba(248, 245, 239, 0.34),
            rgba(255, 255, 255, 0)
        ),
        var(--vs-white);
}

.client-auth-form-wrap {
    width: 100%;
    max-width: 410px;
    margin: 0 auto;
}

.client-auth-form-heading {
    margin-bottom: 30px;
}

.client-auth-form-heading h2 {
    margin: 0;
    color: var(--vs-forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.client-auth-form-heading p {
    margin: 12px 0 0;
    color: var(--vs-muted);
    font-size: 14px;
}

.client-auth-form {
    display: grid;
    gap: 20px;
}

.client-auth-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--vs-ink);
    font-size: 13px;
    font-weight: 750;
}

.client-auth-field input {
    width: 100%;
    height: 53px;
    padding: 0 15px;
    border: 1px solid var(--vs-line);
    border-radius: 11px;
    background: var(--vs-white);
    color: var(--vs-ink);
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.client-auth-field input:hover {
    border-color: #c8c1b7;
}

.client-auth-field input:focus {
    border-color: var(--vs-forest-soft);
    box-shadow: 0 0 0 4px rgba(23, 63, 53, 0.1);
}

.client-auth-button {
    width: 100%;
    min-height: 53px;
    margin-top: 2px;
    padding: 0 22px;
    border: 0;
    border-radius: 11px;
    background: var(--vs-terracotta);
    color: var(--vs-white);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.client-auth-button:hover {
    background: var(--vs-terracotta-dark);
    box-shadow: 0 10px 24px rgba(169, 73, 46, 0.2);
    transform: translateY(-1px);
}

.client-auth-button:focus-visible {
    outline: 3px solid rgba(200, 95, 61, 0.25);
    outline-offset: 3px;
}

.client-auth-alert {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.client-auth-alert-error {
    border: 1px solid var(--vs-error-line);
    background: var(--vs-error-bg);
    color: var(--vs-error);
}

.client-auth-support {
    margin-top: 27px;
    padding-top: 23px;
    border-top: 1px solid var(--vs-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--vs-muted);
    font-size: 12px;
}

.client-auth-support p {
    margin: 0;
}

.client-auth-support a {
    color: var(--vs-forest);
    font-weight: 750;
    text-decoration: none;
}

.client-auth-support a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.client-auth-back-link {
    width: fit-content;
    margin: 24px auto 0;
    display: block;
    color: var(--vs-muted);
    font-size: 12px;
    text-align: center;
    text-decoration: none;
}

.client-auth-back-link:hover {
    color: var(--vs-forest);
}

@media (max-width: 920px) {
    .client-auth-shell {
        width: min(720px, calc(100% - 36px));
        grid-template-columns: 1fr;
    }

    .client-auth-brand-panel {
        min-height: auto;
        padding: 34px 38px 38px;
    }

    .client-auth-brand-copy {
        margin: 65px 0 35px;
    }

    .client-auth-brand-copy h1 {
        font-size: 48px;
    }

    .client-auth-brand-footer {
        display: none;
    }

    .client-auth-form-panel {
        padding: 48px 42px 55px;
    }
}

@media (max-width: 620px) {
    body {
        background: var(--vs-white);
    }

    .client-auth-shell {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .client-auth-brand-panel {
        display: none;
    }

    .client-auth-form-panel {
        min-height: 100vh;
        padding: 36px 24px;
        align-items: flex-start;
    }

    .client-auth-mobile-logo {
        margin-bottom: 72px;
        display: inline-block;
        font-size: 31px;
    }

    .client-auth-form-heading h2 {
        font-size: 39px;
    }

    .client-auth-support {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/*
|--------------------------------------------------------------------------
| Button-style links
|--------------------------------------------------------------------------
*/

.client-auth-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}