/* Auth pages use the same restrained CreatorBrief visual language as the landing page. */
.auth-body {
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-ink);
}

.auth-shell {
    width: min(1760px, 100%);
    min-height: 100vh;
    margin: 0 auto;
}

.auth-brand {
    display: inline-flex;
    color: var(--color-ink);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
}

.auth-brand-strong {
    font-size: 28px;
    font-weight: 800;
}

/* Registration keeps the left promise area and right form panel from the reference. */
.auth-shell-register {
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(440px, 640px);
    align-items: center;
    gap: clamp(60px, 7vw, 116px);
    padding: 72px clamp(54px, 7vw, 116px);
}

.auth-intro {
    max-width: 640px;
}

.auth-intro-copy {
    margin-top: 72px;
}

.auth-intro-copy h1 {
    margin: 0 0 26px;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 500;
}

.auth-intro-copy p {
    max-width: 560px;
    margin: 0;
    color: #2f302f;
    font-size: 21px;
    line-height: 1.45;
}

.auth-benefit-list {
    display: grid;
    margin: 58px 0 0;
    padding: 0;
    list-style: none;
}

.auth-benefit-list li {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 20px;
    min-height: 68px;
    border-bottom: 1px solid var(--color-line);
    color: #222322;
    font-size: 19px;
}

.auth-benefit-list li:first-child {
    border-top: 0;
}

.auth-benefit-list .material-symbols-outlined {
    color: #020202;
    font-size: 27px;
}

.auth-panel-wrap {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: min(560px, 100%);
    padding: 58px 62px;
    border: 1px solid #d7d7d2;
    background: #fbfbfa;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.03);
}

.auth-field {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
}

.auth-field label,
.field-row label {
    color: #151615;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-field input {
    width: 100%;
    min-width: 0;
    height: 38px;
    border: 0;
    border-bottom: 1px solid #d6d6d0;
    background: transparent;
    color: var(--color-ink);
    font-size: 18px;
    outline: none;
}

.auth-field input::placeholder {
    color: #9a9b98;
    opacity: 1;
}

.auth-field input:focus {
    border-color: #111111;
}

.field-hint {
    margin: -4px 0 0;
    color: #202120;
    font-size: 18px;
}

.auth-checkbox {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: start;
    gap: 12px;
    margin: 3px 0 46px;
    color: #242524;
    font-size: 17px;
    line-height: 1.35;
}

.auth-checkbox input {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    border: 1px solid #c9c9c4;
    accent-color: #050505;
}

.auth-checkbox a,
.field-row a,
.auth-switch a {
    border-bottom: 1px solid currentColor;
}

.auth-submit {
    width: 100%;
    min-height: 64px;
    border: 0;
    background: #020202;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
}

.auth-submit:focus-visible,
.auth-checkbox a:focus-visible,
.field-row a:focus-visible,
.auth-switch a:focus-visible,
.auth-brand:focus-visible {
    outline: 2px solid #111111;
    outline-offset: 4px;
}

.auth-divider {
    height: 1px;
    margin: 48px 0 30px;
    background: var(--color-line);
}

.auth-switch {
    margin: 0;
    color: #202120;
    font-size: 18px;
    text-align: center;
}

.auth-switch a {
    font-weight: 700;
    text-transform: uppercase;
}

.auth-note {
    max-width: 420px;
    margin: 30px auto 0;
    color: #393a38;
    font-size: 17px;
    line-height: 1.45;
    text-align: center;
}

/* Login follows the wider split layout from the supplied login reference. */
.auth-shell-login {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(430px, 560px);
    align-items: center;
    gap: clamp(70px, 9vw, 150px);
    padding: 58px clamp(58px, 7vw, 112px);
}

.login-hero {
    min-height: 720px;
    display: grid;
    align-content: start;
}

.login-copy {
    margin-top: 210px;
}

.login-copy h1 {
    margin: 0 0 30px;
    font-size: clamp(66px, 5.7vw, 88px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: 0;
}

.login-copy p {
    max-width: 540px;
    color: #272827;
    font-size: 22px;
    line-height: 1.42;
}

.login-preview-card {
    width: min(560px, 100%);
    margin-top: 80px;
    padding: 28px 30px 32px;
    border: 1px solid #d5d5d0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(17, 17, 17, 0.05);
}

.login-preview-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.login-preview-card h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
}

.login-preview-card span {
    display: inline-flex;
    min-width: 62px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f7dc11;
    font-size: 13px;
}

.login-preview-card p {
    margin: 0;
    color: #353635;
    font-size: 18px;
    line-height: 1.55;
}

.login-form-wrap {
    display: flex;
    justify-content: center;
}

.login-form {
    width: min(520px, 100%);
}

.boxed-field {
    gap: 10px;
    margin-bottom: 34px;
}

.boxed-field input {
    height: 58px;
    padding: 0 20px;
    border: 1px solid #c9c9c4;
    background: #fbfbfa;
    font-size: 18px;
}

.field-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.field-row a {
    color: #2d2e2d;
    font-size: 15px;
}

.login-remember {
    margin: 0 0 35px;
    font-size: 16px;
}

.login-form .auth-submit {
    min-height: 58px;
    font-size: 15px;
    letter-spacing: 0.15em;
    text-transform: none;
}

.login-form .auth-divider {
    margin: 52px 0 54px;
}

.login-form .auth-switch {
    font-size: 19px;
}

.secure-note {
    max-width: 420px;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 18px;
    margin: 78px auto 0;
    color: #858683;
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
}

.secure-note .material-symbols-outlined {
    margin-top: 2px;
    color: #7c7d7a;
    font-size: 22px;
}

/* Tablet portrait gets a dedicated stacked layout instead of shrinking desktop columns. */
@media (min-width: 661px) and (max-width: 1100px) and (orientation: portrait) {
    .auth-shell-register,
    .auth-shell-login {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 56px;
        padding: 52px 44px 80px;
    }

    .auth-intro,
    .login-hero {
        max-width: 720px;
        min-height: auto;
        margin: 0 auto;
    }

    .auth-intro-copy,
    .login-copy {
        margin-top: 76px;
    }

    .auth-intro-copy h1 {
        font-size: 24px;
    }

    .auth-intro-copy p,
    .login-copy p {
        font-size: 21px;
    }

    .auth-benefit-list {
        margin-top: 48px;
    }

    .auth-benefit-list li {
        min-height: 72px;
        font-size: 20px;
    }

    .auth-card,
    .login-form {
        width: min(640px, 100%);
    }

    .login-copy h1 {
        max-width: 520px;
        font-size: 72px;
    }

    .login-preview-card {
        margin-top: 64px;
    }

    .secure-note {
        margin-top: 70px;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .auth-shell-register,
    .auth-shell-login {
        gap: 42px;
        padding: 46px 34px;
    }

    .auth-card {
        padding: 48px;
    }

    .login-copy {
        margin-top: 96px;
    }

    .login-hero {
        min-height: 620px;
    }
}

/* Phones use a compact single-column rhythm with no desktop-width assumptions. */
@media (max-width: 660px) {
    .auth-shell-register,
    .auth-shell-login {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 28px 18px 56px;
    }

    .auth-brand,
    .auth-brand-strong {
        font-size: 22px;
        font-weight: 800;
    }

    .auth-intro-copy,
    .login-copy {
        margin-top: 56px;
    }

    .auth-intro-copy h1 {
        margin-bottom: 22px;
        font-size: 22px;
    }

    .auth-intro-copy p,
    .login-copy p {
        font-size: 18px;
    }

    .auth-benefit-list {
        margin-top: 38px;
    }

    .auth-benefit-list li {
        min-height: 64px;
        gap: 16px;
        font-size: 18px;
    }

    .auth-benefit-list .material-symbols-outlined {
        font-size: 26px;
    }

    .auth-card {
        padding: 32px 22px;
    }

    .auth-field {
        gap: 12px;
        margin-bottom: 26px;
    }

    .auth-field label,
    .field-row label {
        font-size: 16px;
    }

    .auth-field input,
    .boxed-field input {
        height: 56px;
        font-size: 17px;
    }

    .boxed-field input {
        padding: 0 16px;
    }

    .field-hint,
    .auth-checkbox,
    .auth-note,
    .auth-switch,
    .login-form .auth-switch {
        font-size: 16px;
    }

    .auth-checkbox {
        grid-template-columns: 20px 1fr;
        margin-bottom: 36px;
    }

    .auth-checkbox input {
        width: 20px;
        height: 20px;
    }

    .auth-submit,
    .login-form .auth-submit {
        min-height: 62px;
        font-size: 15px;
    }

    .auth-divider,
    .login-form .auth-divider {
        margin: 42px 0 28px;
    }

    .login-hero {
        min-height: auto;
    }

    .login-copy h1 {
        margin-bottom: 24px;
        font-size: 58px;
    }

    .login-preview-card {
        margin-top: 44px;
        padding: 24px;
    }

    .login-preview-card div {
        align-items: flex-start;
        margin-bottom: 22px;
    }

    .login-preview-card h2 {
        font-size: 17px;
    }

    .login-preview-card p {
        font-size: 17px;
    }

    .field-row {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .secure-note {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 54px;
        font-size: 15px;
    }
}
