/* /zynkwatch/assets/css/auth_zynkwatch.css */

:root {
    color-scheme: light dark;

    --zw-page: #efece4;
    --zw-panel: #fbfaf6;
    --zw-card: #fffefb;
    --zw-text: #1d2926;
    --zw-muted: #687571;
    --zw-border: #d9ded8;
    --zw-input: #ffffff;

    --zw-accent: #167c6b;
    --zw-accent-hover: #106254;
    --zw-accent-soft: #e4f2ee;

    --zw-warm: #e2a23a;
    --zw-story-start: #152a27;
    --zw-story-end: #29473f;

    --zw-danger: #b42318;
    --zw-danger-bg: #fff1f0;
    --zw-success: #067647;
    --zw-success-bg: #ecfdf3;

    --zw-shadow:
        0 28px 72px rgba(29, 41, 38, 0.14);
}

@media (prefers-color-scheme: dark) {
    :root {
        --zw-page: #090e0d;
        --zw-panel: #111816;
        --zw-card: #151f1c;
        --zw-text: #f2f7f5;
        --zw-muted: #9eaaa6;
        --zw-border: #2d3a36;
        --zw-input: #0e1714;

        --zw-accent: #49c8ad;
        --zw-accent-hover: #71ddc5;
        --zw-accent-soft: #183a32;

        --zw-warm: #f1b65b;
        --zw-story-start: #0b1715;
        --zw-story-end: #19352e;

        --zw-danger: #fda29b;
        --zw-danger-bg: #34191d;
        --zw-success: #6ce9a6;
        --zw-success-bg: #102a22;

        --zw-shadow:
            0 28px 72px rgba(0, 0, 0, 0.38);
    }
}

* {
    box-sizing: border-box;
}

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

body.zw-auth-page {
    margin: 0;
    min-height: 100vh;
    padding: 24px;
    background:
        radial-gradient(
            circle at 14% 15%,
            color-mix(in srgb, var(--zw-warm) 14%, transparent),
            transparent 24rem
        ),
        radial-gradient(
            circle at 88% 82%,
            color-mix(in srgb, var(--zw-accent) 13%, transparent),
            transparent 28rem
        ),
        var(--zw-page);
    color: var(--zw-text);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.zw-auth-shell {
    width: min(1140px, 100%);
    min-height: calc(100vh - 48px);
    margin: 0 auto;
    display: grid;
    grid-template-columns:
        minmax(0, 1.02fr)
        minmax(400px, 0.98fr);
    overflow: hidden;
    border: 1px solid var(--zw-border);
    border-radius: 30px;
    background: var(--zw-panel);
    box-shadow: var(--zw-shadow);
}

.zw-auth-shell-register {
    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(500px, 1.05fr);
}

.zw-auth-story {
    position: relative;
    min-height: 670px;
    padding: 44px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(
            155deg,
            var(--zw-story-start),
            var(--zw-story-end)
        );
}

.zw-auth-story::before {
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    top: -85px;
    right: -75px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius:
        40% 60% 58% 42% /
        48% 38% 62% 52%;
    transform: rotate(18deg);
    box-shadow:
        0 0 0 48px rgba(255, 255, 255, 0.025),
        0 0 0 96px rgba(255, 255, 255, 0.018);
}

.zw-auth-story::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    left: -70px;
    bottom: 70px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            color-mix(in srgb, var(--zw-warm) 34%, transparent),
            transparent 68%
        );
}

.zw-auth-brand,
.zw-auth-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -0.03em;
    text-decoration: none;
}

.zw-auth-brand {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.zw-auth-brand-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px 12px 12px 4px;
    background: var(--zw-warm);
    color: #17211f;
    font-weight: 950;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.18);
}

.zw-auth-story-copy {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: auto 0;
    padding: 48px 0;
}

.zw-auth-kicker {
    margin: 0 0 12px;
    color: var(--zw-accent);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.zw-auth-story-copy .zw-auth-kicker {
    color: #9fe7d8;
}

.zw-auth-story-copy h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(40px, 5vw, 67px);
    line-height: 1.01;
    letter-spacing: -0.058em;
}

.zw-auth-story-copy > p:not(.zw-auth-kicker) {
    max-width: 560px;
    margin: 23px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 18px;
    line-height: 1.7;
}

.zw-auth-story-points {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.zw-auth-story-points article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.zw-auth-point-number {
    color: var(--zw-warm);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.zw-auth-story-points strong,
.zw-auth-story-points p {
    display: block;
}

.zw-auth-story-points strong {
    color: #ffffff;
    font-size: 14px;
}

.zw-auth-story-points p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    line-height: 1.5;
}

.zw-auth-story-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.63);
    font-size: 14px;
}

.zw-auth-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--zw-warm);
    box-shadow:
        0 0 0 5px rgba(226, 162, 58, 0.12);
}

.zw-auth-form-panel {
    padding: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zw-panel);
}

.zw-auth-card {
    width: min(100%, 450px);
}

.zw-auth-card-wide {
    width: min(100%, 590px);
}

.zw-auth-mobile-brand {
    display: none;
    margin-bottom: 34px;
    color: var(--zw-text);
}

.zw-auth-mobile-brand .zw-auth-brand-mark {
    box-shadow: none;
}

.zw-auth-card-heading {
    margin-bottom: 26px;
}

.zw-auth-card-heading h2 {
    margin: 0;
    color: var(--zw-text);
    font-size: clamp(31px, 4vw, 43px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.zw-auth-card-heading > p:not(.zw-auth-kicker) {
    margin: 12px 0 0;
    color: var(--zw-muted);
    font-size: 15px;
    line-height: 1.6;
}

.zw-auth-alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.zw-auth-alert-error {
    border-color:
        color-mix(in srgb, var(--zw-danger) 28%, transparent);
    background: var(--zw-danger-bg);
    color: var(--zw-danger);
}

.zw-auth-alert-success {
    border-color:
        color-mix(in srgb, var(--zw-success) 28%, transparent);
    background: var(--zw-success-bg);
    color: var(--zw-success);
}

.zw-auth-form {
    display: grid;
    gap: 16px;
}

.zw-auth-field-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.zw-auth-field {
    display: grid;
    gap: 8px;
}

.zw-auth-field > span:first-child {
    color: var(--zw-text);
    font-size: 14px;
    font-weight: 750;
}

.zw-auth-field small {
    color: var(--zw-muted);
    font-size: 12px;
    font-weight: 650;
}

.zw-auth-field input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--zw-border);
    border-radius: 12px;
    outline: none;
    background: var(--zw-input);
    color: var(--zw-text);
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.zw-auth-field input::placeholder {
    color: var(--zw-muted);
    opacity: 0.72;
}

.zw-auth-field input:focus {
    border-color: var(--zw-accent);
    box-shadow:
        0 0 0 4px
        color-mix(in srgb, var(--zw-accent) 15%, transparent);
}

.zw-auth-field input:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.zw-auth-password {
    position: relative;
    display: block;
}

.zw-auth-password input {
    padding-right: 70px;
}

.zw-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    min-width: 52px;
    height: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--zw-accent);
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
}

.zw-auth-password-toggle:hover {
    background: var(--zw-accent-soft);
}

.zw-auth-form-link {
    display: flex;
    justify-content: flex-end;
    margin-top: -3px;
}

.zw-auth-form-link a {
    color: var(--zw-accent);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.zw-auth-form-link a:hover {
    text-decoration: underline;
}

.zw-auth-primary-button,
.zw-auth-secondary-button {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}

.zw-auth-primary-button {
    border: 1px solid var(--zw-accent);
    background: var(--zw-accent);
    color: #ffffff;
}

.zw-auth-primary-button:hover:not(:disabled) {
    border-color: var(--zw-accent-hover);
    background: var(--zw-accent-hover);
    transform: translateY(-1px);
}

.zw-auth-primary-button:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

.zw-auth-secondary-button {
    border: 1px solid var(--zw-border);
    background: transparent;
    color: var(--zw-text);
}

.zw-auth-secondary-button:hover {
    border-color: var(--zw-accent);
    color: var(--zw-accent);
    transform: translateY(-1px);
}

.zw-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--zw-muted);
    font-size: 12px;
    font-weight: 750;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.zw-auth-divider::before,
.zw-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--zw-border);
}

.zw-auth-note {
    margin: -2px 0 0;
    color: var(--zw-muted);
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 980px) {
    body.zw-auth-page {
        padding: 12px;
    }

    .zw-auth-shell,
    .zw-auth-shell-register {
        width: min(740px, 100%);
        min-height: calc(100vh - 24px);
        grid-template-columns: 1fr;
        border-radius: 23px;
    }

    .zw-auth-story {
        display: none;
    }

    .zw-auth-form-panel {
        min-height: calc(100vh - 24px);
        padding: 36px 26px;
    }

    .zw-auth-mobile-brand {
        display: inline-flex;
    }
}

@media (max-width: 620px) {
    body.zw-auth-page {
        padding: 0;
    }

    .zw-auth-shell,
    .zw-auth-shell-register {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .zw-auth-form-panel {
        min-height: 100vh;
        padding: 28px 18px;
        align-items: flex-start;
    }

    .zw-auth-card,
    .zw-auth-card-wide {
        width: 100%;
        padding-top: 8px;
    }

    .zw-auth-field-grid {
        grid-template-columns: 1fr;
    }
}

/* Forgot-password and reset-page supporting elements. */
.zw-auth-help {
    margin: -2px 0 0;
    color: var(--zw-muted);
    font-size: 13px;
    line-height: 1.55;
}

.zw-auth-local-test {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px dashed var(--zw-border);
    border-radius: 12px;
    background: var(--zw-accent-soft);
}

.zw-auth-local-test strong {
    color: var(--zw-text);
    font-size: 13px;
}

.zw-auth-local-test a {
    color: var(--zw-accent);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.zw-auth-local-test a:hover {
    text-decoration: underline;
}

.zw-auth-inline-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 20px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--zw-border);
}

.zw-auth-inline-links a {
    color: var(--zw-accent);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.zw-auth-inline-links a:hover {
    text-decoration: underline;
}

/* Email or phone recovery option. */
.zw-auth-choice-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
    border: 0;
}

.zw-auth-choice-group legend {
    grid-column: 1 / -1;
    margin-bottom: 1px;
    padding: 0;
    color: var(--zw-text);
    font-size: 14px;
    font-weight: 750;
}

.zw-auth-choice {
    position: relative;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--zw-border);
    border-radius: 11px;
    background: var(--zw-input);
    cursor: pointer;
    overflow: hidden;
}

.zw-auth-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.zw-auth-choice span {
    width: 100%;
    min-height: 46px;
    display: grid;
    place-items: center;
    padding: 0 12px;
    color: var(--zw-muted);
    font-size: 14px;
    font-weight: 800;
    transition:
        color 0.16s ease,
        background-color 0.16s ease;
}

.zw-auth-choice input:checked + span {
    background: var(--zw-accent-soft);
    color: var(--zw-accent);
    box-shadow:
        inset 0 0 0 1px var(--zw-accent);
}

.zw-auth-choice:focus-within {
    box-shadow:
        0 0 0 4px
        color-mix(
            in srgb,
            var(--zw-accent) 15%,
            transparent
        );
}

.zw-auth-method-panel[hidden] {
    display: none !important;
}

