/*
|--------------------------------------------------------------------------
| VuSpaces Client Authentication
|--------------------------------------------------------------------------
|
| Shared styles for the client login and account-access pages.
| Updated to match the Photographer/public VuSpaces visual system.
|
*/

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

:root {
    --vs-bg: #f7f7f5;
    --vs-surface: #ffffff;
    --vs-surface-soft: #f1f2ef;

    --vs-text: #202326;
    --vs-text-muted: #64696c;

    --vs-border: #e5e6e4;
    --vs-border-dark: #d5d7d8;

    --vs-lime: #c9f8cc;
    --vs-lime-hover: #b6edba;
    --vs-lime-strong: #9fdfa7;
    --vs-lime-soft: #e7f9e8;

    --vs-error: #9f2f2f;
    --vs-error-bg: #fff1ef;
    --vs-error-line: #efc7c0;

    --vs-shadow: 0 24px 70px rgba(0, 0, 0, 0.10);
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--vs-text);
    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(201, 248, 204, 0.28),
            transparent 30%
        ),
        var(--vs-bg);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    line-height: 1.6;
}

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 var(--vs-border);
    border-radius: 22px;
    background: var(--vs-surface);
    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: #ffffff;
    background: var(--vs-text);
}

.client-auth-brand-panel::before {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -150px;
    top: -120px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    content: "";
}

.client-auth-brand-panel::after {
    position: absolute;
    width: 280px;
    height: 280px;
    left: -95px;
    bottom: -130px;
    border-radius: 50%;
    background: rgba(201, 248, 204, 0.12);
    content: "";
}

.client-auth-logo,
.client-auth-mobile-logo {
    position: relative;
    z-index: 1;
    width: fit-content;
    color: #ffffff;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.client-auth-mobile-logo {
    display: none;
    color: var(--vs-text);
}

.client-auth-logo span,
.client-auth-mobile-logo span {
    line-height: 1;
}

.client-auth-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 510px;
    margin: auto 0;
}

.client-auth-eyebrow {
    margin-bottom: 15px;
    color: #4f585a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

/* Lime eyebrow only when it sits on the dark brand panel */
.client-auth-brand-panel .client-auth-eyebrow {
    color: var(--vs-lime);
}

.client-auth-brand-copy h1 {
    max-width: 510px;
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: clamp(42px, 4.5vw, 62px);
    font-weight: 700;
    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.74);
    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: var(--vs-lime);
    color: var(--vs-text);
    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(247, 247, 245, 0.72),
            rgba(255, 255, 255, 0)
        ),
        var(--vs-surface);
}

.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-text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.client-auth-form-heading p {
    margin: 12px 0 0;
    color: var(--vs-text-muted);
    font-size: 14px;
}

.client-auth-form {
    display: grid;
    gap: 20px;
}

.client-auth-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--vs-text);
    font-size: 13px;
    font-weight: 700;
}

.client-auth-field input {
    width: 100%;
    height: 53px;
    padding: 0 15px;
    border: 1px solid var(--vs-border-dark);
    border-radius: 8px;
    background: var(--vs-surface);
    color: var(--vs-text);
    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: #bfc3c4;
}

.client-auth-field input:focus {
    border-color: #747a7c;
    box-shadow: 0 0 0 4px rgba(32, 35, 38, 0.08);
}

.client-auth-button {
    width: 100%;
    min-height: 53px;
    margin-top: 2px;
    padding: 0 22px;
    border: 1px solid var(--vs-lime-strong);
    border-radius: 8px;
    background: var(--vs-lime);
    color: var(--vs-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.client-auth-button:hover {
    background: var(--vs-lime-hover);
    box-shadow: none;
    transform: translateY(-1px);
}

.client-auth-button:focus-visible {
    outline: 3px solid rgba(159, 223, 167, 0.35);
    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-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--vs-text-muted);
    font-size: 12px;
}

.client-auth-support p {
    margin: 0;
}

.client-auth-support a {
    color: var(--vs-text);
    font-weight: 700;
    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-text-muted);
    font-size: 12px;
    text-align: center;
    text-decoration: none;
}

.client-auth-back-link:hover {
    color: var(--vs-text);
}

.client-auth-password-toggle {
    color: var(--vs-text-muted);
}

.client-auth-password-toggle:hover {
    background: rgba(32, 35, 38, 0.06);
    color: var(--vs-text);
}

.client-auth-password-toggle:focus-visible {
    outline: 2px solid var(--vs-lime-strong);
    outline-offset: 2px;
}

@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-surface);
    }

    .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: 24px;
    }

    .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;
}
