/*
 * Tratamento compartilhado da landing e do login.
 * O fundo da janela permanece branco e cada experiência azul funciona
 * como uma página editorial emoldurada, com margens visíveis.
 */

html,
body {
    background: #fff;
}

/* Landing comercial */
.page-shell {
    padding: 16px 0;
}

.product-frame {
    width: calc(100% - 32px);
    min-height: calc(100svh - 32px);
    margin: 0 auto;
    padding: 14px;
    border-radius: 48px;
    box-shadow: 0 22px 55px rgb(5 20 48 / 16%);
}

.hero-panel {
    min-height: calc(100svh - 60px);
    border-radius: 35px;
}

.hero-footer {
    z-index: 7;
}

.scroll-indicator {
    color: #1672c8;
    transform: translateY(27px);
}

.giant-word {
    right: auto;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 36px);
    transform: translateX(-50%);
    text-align: center;
    font-size: clamp(118px, 18vw, 360px);
}

.content-section {
    width: calc(100% - 32px);
    margin: 16px auto 0;
    padding: clamp(64px, 8vw, 120px) clamp(24px, 7vw, 120px);
    border-radius: 42px;
    background:
        radial-gradient(circle at 82% 15%, rgb(43 135 209 / 72%), transparent 35%),
        linear-gradient(135deg, #061a36, #0c3262 56%, #1a5fa5);
    box-shadow: 0 22px 55px rgb(5 20 48 / 14%);
}

/* Login */
.login-page {
    display: block;
    min-height: 100svh;
    padding: 16px;
}

.login-frame {
    width: 100%;
    height: calc(100svh - 32px);
    min-height: 680px;
    padding: 14px;
    border-radius: 48px;
    box-shadow: 0 20px 52px rgb(5 20 48 / 14%);
}

.brand-tab {
    width: 248px;
    height: 56px;
    place-items: start center;
    padding-top: 17px;
    border-radius: 0 0 42px 42px;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1.3px;
}

.brand-tab::before,
.brand-tab::after,
.frame-notch {
    display: none;
}

.bottom-notch {
    width: 110px;
    height: 38px;
    place-items: center;
    border-radius: 42px 42px 0 0;
    color: #1672c8;
    font-size: 28px;
    line-height: 1;
}

.bottom-notch span {
    padding-bottom: 0;
    transform: translateY(3px);
}

.login-canvas {
    height: 100%;
    min-height: 0;
    border-radius: 35px;
}

.login-grid {
    height: calc(100% - 88px);
    min-height: 0;
}

.login-canvas .display-word {
    top: 95px;
    right: auto;
    left: 50%;
    width: max-content;
    max-width: calc(100% - 34px);
    transform: translateX(-50%);
    text-align: center;
    font-size: clamp(118px, 18vw, 360px);
    font-weight: 900;
    line-height: .72;
    letter-spacing: -13px;
}

.login-story {
    max-width: 330px;
    padding-bottom: 46px;
}

.story-kicker {
    color: #8ac6f7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.login-story h1 {
    margin: 12px 0 14px;
    font-size: 34px;
    line-height: 1.02;
    letter-spacing: -1.5px;
}

.login-story h1 span {
    display: block;
    white-space: nowrap;
}

.login-story > p:not(.story-kicker) {
    color: #c3d8ec;
    font-size: 13px;
    line-height: 1.7;
}

.story-features {
    gap: 10px;
    margin-top: 15px;
}

.story-features li {
    grid-template-columns: 34px 1fr;
    gap: 10px;
    padding-top: 10px;
    color: #dcecf8;
    font-size: 11px;
    line-height: 1.4;
}

.story-features strong {
    color: #72bff8;
    font-size: 11px;
}

.privacy-note {
    display: none;
}

@media (min-width: 1440px) {
    .hero-content {
        padding-right: clamp(48px, 5vw, 96px);
        padding-left: clamp(48px, 5vw, 96px);
    }

    .reader-stage {
        transform: scale(1.08);
    }

    .login-grid {
        grid-template-columns: minmax(280px, .9fr) minmax(390px, 1.08fr) minmax(390px, .86fr);
        padding-right: clamp(38px, 4vw, 78px);
        padding-left: clamp(38px, 4vw, 78px);
    }

    .book-object {
        width: 430px;
        height: 270px;
    }
}

@media (min-width: 981px) {
    .hero-content {
        height: calc(100svh - 160px);
        min-height: 600px;
    }

    .left-copy {
        transform: none;
    }
}

@media (min-width: 761px) and (max-height: 820px) {
    .login-frame {
        min-height: 0;
    }

    .login-topbar {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .login-grid {
        height: calc(100% - 84px);
        padding-top: 76px;
        padding-bottom: 38px;
    }

    .login-story {
        padding-bottom: 24px;
    }

    .book-scene {
        height: 360px;
    }

    .auth-card {
        padding: 22px;
    }

    .auth-heading h2 {
        font-size: 2.25rem;
    }

    .display-word {
        top: 58px;
    }
}

@media (min-width: 981px) and (max-height: 650px) {
    .product-frame {
        padding: 10px;
        border-radius: 38px;
    }

    .product-frame::before {
        height: 46px;
    }

    .frame-brand {
        top: 11px;
        font-size: 21px;
    }

    .hero-panel {
        min-height: calc(100svh - 52px);
        border-radius: 29px;
    }

    .topbar {
        padding: 20px 38px;
    }

    .hero-content {
        height: calc(100svh - 130px);
        min-height: 0;
        padding: 18px 38px 50px;
    }

    .giant-word {
        font-size: clamp(150px, 18vw, 250px);
    }

    .left-copy {
        padding-bottom: 8px;
        transform: none;
    }

    .left-copy h1 {
        font-size: 27px;
    }

    .left-copy p {
        font-size: 11px;
        line-height: 1.55;
    }

    .hero-actions {
        margin-top: 17px;
    }

    .primary-cta,
    .ghost-cta {
        padding: 10px 14px;
        font-size: 10px;
    }

    .reader-stage {
        height: 310px;
        transform: scale(.84);
    }

    .right-copy {
        padding-bottom: 18px;
    }

    .feature-list {
        margin-top: 9px;
    }

    .feature-item {
        padding-top: 7px;
        font-size: 9px;
    }

    .hero-footer {
        bottom: 13px;
    }

    .scroll-indicator {
        transform: translateY(25px);
    }
}

@media (max-width: 1120px) {
    .login-frame {
        max-width: none;
    }

    .login-canvas {
        min-height: 0;
    }
}

@media (max-width: 980px) {
    .page-shell {
        padding: 12px 0;
    }

    .product-frame {
        width: calc(100% - 24px);
        min-height: calc(100svh - 24px);
        margin: 0 auto;
    }

    .hero-panel {
        min-height: calc(100svh - 54px);
    }

    .content-section {
        width: calc(100% - 24px);
        margin-top: 12px;
    }
}

@media (max-width: 760px) {
    .login-page {
        padding: 6px;
    }

    .login-frame {
        height: auto;
        min-height: calc(100svh - 12px);
        padding: 7px;
        border-radius: 28px;
    }

    .login-canvas {
        height: auto;
        min-height: calc(100svh - 26px);
        border-radius: 21px;
    }

    .login-grid {
        height: auto;
        min-height: 0;
    }

    .brand-tab {
        width: 154px;
        height: 42px;
        padding-top: 9px;
        border-radius: 0 0 27px 27px;
        font-size: 18px;
    }

    .login-canvas .display-word {
        top: 78px;
        font-size: clamp(118px, 18vw, 360px);
        letter-spacing: -13px;
    }

    .login-story {
        max-width: 560px;
        padding-bottom: 0;
    }

}

@media (max-width: 620px) {
    .page-shell {
        padding: 6px 0;
    }

    .product-frame {
        width: calc(100% - 12px);
        min-height: calc(100svh - 12px);
        margin: 0 auto;
        padding: 7px;
        border-radius: 27px;
    }

    .hero-panel {
        min-height: calc(100svh - 26px);
        border-radius: 20px;
    }

    .content-section {
        width: calc(100% - 12px);
        margin-top: 6px;
        padding: 52px 18px 70px;
        border-radius: 26px;
    }

    .login-story h1 {
        font-size: 30px;
    }
}

@media (min-width: 981px) and (max-height: 650px) {
    .brand-tab {
        height: 46px;
        padding-top: 11px;
        font-size: 21px;
    }

    .login-topbar {
        padding: 18px 38px;
    }

    .login-grid {
        height: calc(100% - 76px);
        padding-top: 52px;
        padding-bottom: 18px;
    }

    .login-canvas .display-word {
        top: 58px;
        font-size: clamp(150px, 18vw, 250px);
    }

    .login-story {
        transform: translateY(105px);
    }

    .login-story h1 {
        margin-top: 8px;
        margin-bottom: 10px;
        font-size: 27px;
    }

    .login-story > p:not(.story-kicker) {
        font-size: 11px;
        line-height: 1.55;
    }

    .story-features {
        gap: 5px;
        margin-top: 10px;
    }

    .story-features li {
        padding-top: 5px;
        font-size: 9px;
    }

    .story-features strong {
        font-size: 9px;
    }

    .book-scene {
        left: 27%;
        bottom: 4px;
        width: 31%;
        height: 250px;
        opacity: .72;
        transform: scale(.58);
    }

    .auth-card {
        padding: 16px 20px;
        border-radius: 24px;
    }

    .auth-heading h2 {
        margin-top: 6px;
        margin-bottom: 5px;
        font-size: 1.85rem;
    }

    .auth-heading > p {
        margin-bottom: 9px;
        font-size: .68rem;
    }

    .auth-card form {
        gap: 5px;
    }

    .field-shell {
        height: 41px;
    }

    .submit-button {
        height: 43px;
        margin-top: 4px;
    }

    .support-copy {
        margin-top: 8px;
    }
}
