:root {
    --bg: #f6f8fc;
    --ink: #20324f;
    --muted: #687b96;
    --blue: #326ce5;
    --line: #dce5f2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input {
    font: inherit;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button, summary {
    cursor: pointer;
}

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 3px solid #91b4fc;
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

.page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.story {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    padding: 42px clamp(28px, 4vw, 72px);
    color: #fff;
    text-align: center;
    background: radial-gradient(ellipse at 50% 45%, #284b78 0%, #1c3557 48%, #14273f 100%);
}

.story::after {
    position: absolute;
    content: "";
    width: 650px;
    height: 650px;
    bottom: -470px;
    left: calc(50% - 325px);
    border: 1px solid #91b8f325;
    border-radius: 50%;
    box-shadow: 0 0 0 70px #91b8f308, 0 0 0 140px #91b8f305;
    pointer-events: none;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -1px;
}

.brand-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid #ffffff30;
    border-radius: 12px;
    background: linear-gradient(145deg, #6498ff, #3474f0);
    color: #fff;
    font-size: 25px;
    box-shadow: 0 8px 22px #071a3625;
}

.story-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 510px;
    margin: auto;
    padding: 48px 0;
}

.eyebrow {
    color: #b2cbf2;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 2px;
}

.story h1 {
    margin: 20px 0;
    font-size: clamp(36px, 3.4vw, 54px);
    line-height: 1.14;
    letter-spacing: -1.8px;
    font-weight: 700;
}

.story h1 span {
    color: #a8c9ff;
}

.story p {
    max-width: 410px;
    margin: 0 auto;
    color: #bfd0e7;
    font-size: 14px;
    line-height: 1.85;
}

.visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 370px);
    height: 235px;
    margin: 30px auto 0;
}

.deck {
    position: relative;
    z-index: 2;
    width: 280px;
    height: 178px;
    padding: 24px;
    border: 1px solid #fff;
    border-radius: 12px;
    background: #fff;
    color: #254574;
    text-align: left;
    transform: rotate(-5deg);
    box-shadow: 0 20px 45px #07172d40;
}

.deck.back {
    position: absolute;
    top: 28px;
    left: calc(50% - 130px);
    z-index: 1;
    background: #a9c6f1;
    border-color: #b9d1f5;
    transform: rotate(7deg);
}

.deck small {
    color: #637a9b;
    font-size: 8px;
    letter-spacing: 1px;
}

.deck h2 {
    margin: 12px 0;
    font-size: 20px;
    line-height: 1.3;
}

.deck-line {
    width: 42px;
    height: 4px;
    border-radius: 3px;
    background: #528bff;
}

.deck-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    color: #657d9e;
    font-size: 9px;
}

.ppt-label {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    padding: 9px 16px;
    border: 1px solid #ffffff30;
    border-radius: 30px;
    background: #34567f;
    color: #edf4ff;
    font-size: 11px;
    white-space: nowrap;
    box-shadow: 0 8px 20px #10203925;
}

.story-footer {
    position: relative;
    z-index: 1;
    font-size: 12px;
    letter-spacing: .3px;
}

.story-footer a {
    color: #b2c8e6;
}

.login-area {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 42px clamp(28px, 4vw, 72px);
    background: radial-gradient(ellipse at top right, #eaf0ff80, transparent 65%);
}

.mobile-brand {
    display: none;
}

.top-note {
    align-self: flex-end;
    color: var(--muted);
    font-size: 12px;
    line-height: 42px;
}

.login-wrap {
    width: 100%;
    max-width: 410px;
    margin: auto;
    padding: 48px 0;
}

.welcome-tag {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #dce7fb;
    border-radius: 6px;
    background: #edf3ff;
    color: #4067a7;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .7px;
}

.login-wrap h2 {
    margin: 18px 0 10px;
    font-size: clamp(27px, 2.3vw, 34px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.25;
}

.intro {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

.field input {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    box-shadow: 0 2px 5px #20324f03;
    transition: border-color .15s, box-shadow .15s;
}

.field input::placeholder {
    color: #8493a9;
}

.field input:focus {
    border-color: #6f9cf1;
    box-shadow: 0 0 0 4px #326ce510;
}

.options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 22px;
    font-size: 13px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    color: var(--muted);
    cursor: pointer;
}

.remember input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--blue);
}

.text-button {
    border: 0;
    padding: 8px 0;
    background: none;
    color: var(--blue);
    font-size: 13px;
}

.text-button:hover {
    text-decoration: underline;
}

.submit {
    width: 100%;
    min-height: 52px;
    padding: 13px 18px;
    border: 1px solid var(--blue);
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 7px 18px #326ce51c;
    transition: background .15s;
}

.submit:hover {
    background: #255dce;
}

.submit span {
    margin-left: 12px;
}

.submit:disabled {
    opacity: .65;
    cursor: default;
}

.support-details {
    margin-top: 22px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.support-details summary {
    list-style: none;
    padding: 6px 0;
    color: #526f9b;
}

.support-details summary::-webkit-details-marker {
    display: none;
}

.support-details p {
    margin: 9px 0;
}

.back-button {
    display: block;
    margin: 20px auto 0;
}

.form-status, .login-error {
    margin: 18px 0 0;
    padding: 13px 15px;
    border: 1px solid #cddff8;
    border-radius: 9px;
    background: #edf4ff;
    color: #365b8c;
    font-size: 13px;
    line-height: 1.7;
}

.login-error {
    border-color: #f0b8bd;
    border-left: 4px solid #d93646;
    background: #fff0f1;
    color: #b42332;
    font-weight: 600;
}

.login-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 20px;
    color: var(--muted);
    font-size: 11px;
}

.login-footer a {
    color: var(--muted);
}

@media (max-width: 1000px) {
    .story, .login-area {
        padding: 32px 28px;
    }

    .story h1 {
        font-size: 38px;
    }
}

@media (max-width: 760px) {
    .page {
        display: block;
    }

    .story, .top-note {
        display: none;
    }

    .login-area {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 28px 24px;
    }

    .mobile-brand {
        display: flex;
        font-size: 26px;
    }

    .login-wrap {
        max-width: 410px;
        padding: 44px 0;
    }

    .login-wrap h2 {
        font-size: 30px;
    }

    .login-footer {
        width: 100%;
        max-width: 410px;
        margin: 0 auto;
    }
}

@media (max-width: 380px) {
    .login-area {
        padding: 24px 20px;
    }

    .login-wrap h2 {
        font-size: 27px;
    }

    .intro br {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
