/* Camada exclusiva de autenticação; componentes básicos vêm de core.css. */

.auth-page {
    background:#fff
}

.auth-layout {
    display:grid;
    grid-template-columns:minmax(420px,46%) minmax(0,1fr);
    min-height:100svh;
    padding:16px;
    gap:16px;
    width:100%
}

.access-panel {
    display:flex;
    flex-direction:column;
    min-width:0;
    padding:20px clamp(24px,4.2vw,70px) 12px
}

.access-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px
}

.header-caption {
    font-size:12px;
    letter-spacing:.18em;
    color:#76879d;
    white-space:nowrap;
    font-weight:650
}

.access-main {
    display:flex;
    align-items:center;
    flex:1;
    padding:24px 0
}

.auth-form-area {
    width:100%;
    max-width:392px;
    margin:auto
}

/* Títulos e espaçamentos compactos, sem reduzir os controles do formulário. */
.auth-form-area h1 {
    font-size:clamp(26px,2.4vw,30px);
    line-height:1.18
}

.auth-form-area>.eyebrow {
    margin-bottom:10px
}

.auth-description {
    margin-top:10px;
    color:#6a798e;
    font-size:15px;
    line-height:1.6;
    max-width:380px
}

.auth-form {
    display:grid;
    gap:14px;
    margin-top:20px
}

#login-mensagem {
    text-align: center;
    overflow-wrap: anywhere;
}

.form-options {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:-9px;
    margin-bottom:1px
}

.form-options .text-link {
    padding:8px 0
}

.access-footer {
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:10px;
    font-size:12px;
    letter-spacing:.015em;
    color:#718196
}

.back-link {
    display:inline-flex;
    align-items:center;
    gap:10px;
    min-height:44px;
    margin-bottom:12px;
    text-decoration:none;
    font-size:14px;
    font-weight:650;
    color:#5e7087
}

.back-link:hover {
    color:var(--nf-blue)
}

.back-link>span {
    font-size:19px
}

.auth-note {
    font-size:14px;
    color:#6d7d92;
    line-height:1.6;
    margin-top:14px;
    max-width:355px
}

.standalone-link {
    display:block;
    text-align:center;
    margin-top:12px;
    padding:8px
}

.info-card {
    border-left:2px solid var(--nf-teal);
    background:#f4f8fb;
    padding:12px 16px;
    margin:18px 0;
    font-size:14px;
    border-radius:0 8px 8px 0
}

.info-card p {
    margin-top:6px;
    color:#65758a;
    line-height:1.8
}

.auth-description+.button {
    margin-top:20px
}

.brand-panel {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    min-width:0;
    border-radius:18px;
    background:radial-gradient(ellipse at 100% 57%,#104b5b80,transparent 55%),radial-gradient(ellipse at 20% 10%,#164c8630,transparent 60%),#0b1f3b;
    color:#fff;
    display:flex;
    flex-direction:column;
    padding:36px clamp(28px,4.5vw,70px) 28px;
    min-height:0
}

.panel-grid {
    position:absolute;
    inset:0;
    z-index:-1;
    opacity:.35;
    background-image:linear-gradient(#cde6ff0b 1px,transparent 1px),linear-gradient(90deg,#cde6ff0b 1px,transparent 1px);
    background-size:54px 54px;
    mask-image:linear-gradient(180deg,transparent,#000 40%,#000)
}

.panel-heading {
    margin-top:65px
}

.panel-heading h2 {
    font-size:clamp(32px,3.3vw,51px);
    line-height:1.22;
    font-weight:500;
    letter-spacing:-.047em;
    color:#f3f7ff
}

.panel-heading h2>span {
    color:#5bddcf
}

.panel-heading .panel-description {
    margin-top:20px;
    font-size:14px;
    color:#9db1ca;
    line-height:1.85
}

.fiscal-art {
    position:relative;
    width:min(100%,460px);
    margin:46px auto 36px;
    min-height:410px;
    flex:1;
    display:grid;
    place-items:center
}

.orbit {
    position:absolute;
    border:1px solid #547b9d2e;
    width:360px;
    height:360px;
    border-radius:50%;
    transform:rotate(-25deg) scaleX(1.3);
    z-index:-1
}

.orbit-two {
    width:290px;
    height:290px;
    border-style:dashed;
    transform:rotate(35deg) scaleX(1.4)
}

.fiscal-document {
    width:80%;
    max-width:330px;
    background:linear-gradient(150deg,#fff,#edf3f8);
    color:#153047;
    border-radius:10px;
    box-shadow:0 30px 55px #0004;
    transform:rotate(-6deg);
    padding:23px 24px 18px;
    position:relative
}

.document-back {
    position:absolute;
    width:75%;
    max-width:300px;
    height:280px;
    border:1px solid #8daac740;
    background:linear-gradient(130deg,#6c86a522,#22547b30);
    border-radius:12px;
    transform:rotate(7deg) translate(19px,-10px)
}

.document-top {
    display:flex;
    align-items:center;
    gap:9px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.1em
}

.document-icon {
    display:grid;
    place-items:center;
    border-radius:6px;
    background:#e6f0fd;
    color:#2563eb;
    width:30px;
    height:32px;
    flex:none
}

.document-icon svg {
    width:19px;
    height:19px
}

.document-top small {
    display:block;
    font-size:11px;
    letter-spacing:0;
    color:#8092a3;
    font-weight:500;
    margin-top:3px
}

.document-dots {
    margin-left:auto;
    color:#8699ae;
    font-size:18px;
    letter-spacing:0
}

.document-title {
    font-size:27px;
    letter-spacing:-.05em;
    line-height:1.3;
    margin-top:18px;
    font-weight:600
}

.document-title>span {
    display:block;
    font-size:11px;
    font-weight:450;
    letter-spacing:0;
    margin-top:5px;
    color:#8493a4
}

.document-line {
    height:1px;
    background:#dbe5ed;
    margin:17px 0
}

.document-columns {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px
}

.document-columns small {
    font-size:10px;
    letter-spacing:.14em;
    color:#8799ad;
    display:block
}

.document-columns b {
    display:block;
    font-size:12px;
    font-weight:700;
    margin:4px 0 8px
}

.document-columns i {
    display:block;
    background:#dce5ee;
    width:90%;
    height:3px;
    margin-top:4px;
    border-radius:3px
}

.document-columns i.short {
    width:55%
}

.document-table {
    display:grid;
    grid-template-columns:1fr 40px;
    gap:7px 18px;
    margin-top:18px;
    padding:10px 0;
    border-top:1px solid #e0e7ee
}

.document-table span {
    font-size:10px;
    letter-spacing:.1em;
    color:#8a9cae
}

.document-table i {
    height:3px;
    background:#dfe7ee;
    border-radius:2px
}

.document-table i:nth-of-type(odd) {
    width:75%
}

.document-footer {
    margin-top:11px;
    padding-top:10px;
    border-top:1px solid #dbe5ed;
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:#7690a3;
    font-size:11px;
    line-height:1.6
}

.document-barcode {
    width:52px;
    height:17px;
    background:repeating-linear-gradient(90deg,#a0b2c1 0 1px,transparent 1px 3px,#a0b2c1 3px 5px,transparent 5px 7px)
}

.art-note {
    position:absolute;
    bottom:3px;
    right:-9px;
    display:flex;
    align-items:center;
    gap:11px;
    width:246px;
    padding:14px 17px;
    border:1px solid #55868f77;
    border-radius:10px;
    background:linear-gradient(110deg,#143b52,#143449);
    box-shadow:0 16px 32px #051c3340;
    color:#e8f8f6;
    font-size:13px;
    font-weight:600;
    transform:rotate(3deg)
}

.check-symbol {
    display:grid;
    place-items:center;
    width:28px;
    height:28px;
    border-radius:50%;
    background:#1a746a;
    color:#8af4dc;
    font-size:16px
}

.art-note small {
    display:block;
    font-weight:400;
    color:#a3c6ce;
    font-size:12px;
    margin-top:3px
}

.note-arrow {
    margin-left:auto;
    font-size:20px;
    font-weight:400;
    color:#79bdc6
}

@media(min-width:1600px) {
    .auth-layout {
        padding:24px;
        gap:24px
    }
    .fiscal-document {
        max-width:355px
    }
    .header-caption {
        font-size:13px
    }
}

@media(max-width:1150px) {
    .auth-layout {
        grid-template-columns:minmax(370px,48%) minmax(0,1fr);
        padding:12px;
        gap:12px
    }
    .access-panel {
        padding:22px 26px 12px
    }
    .header-caption {
        display:none
    }
    .fiscal-document {
        width:88%;
        padding:20px
    }
    .access-footer {
        font-size:12px
    }
}

@media(max-width:820px) {
    .auth-form-area h1 {
        font-size:24px
    }
    .auth-layout {
        display:block;
        padding:0;
        min-height:100svh
    }
    .access-panel {
        min-height:100svh;
        padding:28px 36px 24px
    }
    .brand-panel {
        display:none
    }
    .access-header {
        max-width:620px;
        width:100%;
        margin-inline:auto
    }
    .header-caption {
        display:block
    }
    .auth-form-area {
        max-width:420px
    }
    .access-footer {
        max-width:620px;
        width:100%;
        margin-inline:auto;
        font-size:13px
    }
    .auth-page {
        background:radial-gradient(ellipse at 100% 0,#14b8a609,transparent 40%),#fff
    }
}

@media(max-width:480px) {
    .access-panel {
        padding:22px 24px
    }
    .access-header .brand-slot img {
        width:150px;
        height:40px;
        line-height:40px
    }
    .header-caption {
        font-size:12px;
        letter-spacing:.1em
    }
    .form-options {
        gap:8px;
        flex-wrap:wrap
    }
    .checkbox-label,.form-options .text-link {
        font-size:14px
    }
    .eyebrow {
        font-size:12px;
        letter-spacing:.12em
    }
    .access-footer {
        font-size:12px
    }

}

@media(max-width:359px) {
    .access-panel {
        padding-inline:18px
    }
    .header-caption {
        display:none
    }
    .access-footer {
        flex-direction:column;
        gap:3px
    }
}

@media(min-width:821px) and (max-height:850px) {
    .access-panel {
        padding-top:16px;
        padding-bottom:8px
    }

    .fiscal-document {
        padding:16px 20px
    }
    .document-title {
        margin-top:12px
    }
    .document-line {
        margin:12px 0
    }
    .document-table {
        margin-top:12px;
        padding:8px 0
    }
    .document-footer {
        margin-top:8px;
        padding-top:8px
    }
}
/* Apresentação externa compacta: slogan, documento e assinatura visual. */
@media (min-width: 821px) {
    .brand-panel {
        justify-content: center;
        gap: clamp(20px, 3vh, 32px);
        padding: 28px clamp(24px, 3vw, 52px);
    }
    .panel-heading {
        margin: 0;
        text-align: center;
    }
    .panel-heading h2 {
        font-size: clamp(30px, 2.8vw, 44px);
        line-height: 1.18;
    }
    .panel-heading .panel-description {
        margin-top: 14px;
        font-size: 15px;
        line-height: 1.5;
    }
    .fiscal-art {
        width: min(100%, 400px);
        min-height: 0;
        height: 350px;
        max-height: none;
        margin: 0 auto;
        flex: none;
    }
    .fiscal-document {
        width: 84%;
        max-width: 320px;
        transform: rotate(-4deg);
    }
    .document-back {
        height: 270px;
        transform: rotate(5deg) translate(12px, -6px);
    }
    .orbit { width: 290px; height: 290px; }
    .orbit-two { width: 240px; height: 240px; }
    .art-note {
        position: relative;
        bottom: auto;
        right: auto;
        width: min(100%, 320px);
        margin: 0 auto;
        padding: 12px 16px;
        transform: none;
        box-shadow: none;
        font-size: 14px;
    }
}
@media (min-width: 821px) and (max-height: 750px) {
    .brand-panel { gap: 16px; padding-block: 20px; }
    .panel-heading h2 { font-size: clamp(30px, 2.6vw, 38px); }
    .fiscal-art { height: 310px; }
}

/* Coluna de planos compartilhada e rolagem reservada ao painel lateral. */
.auth-registration-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 12px;
}
.auth-registration-links .text-link { padding: 8px 0; }
.auth-plans-panel {
    justify-content: flex-start;
    gap: 0;
    position: sticky;
    top: 16px;
    align-self: flex-start;
    height: calc(100dvh - 32px);
    min-height: 0;
    max-height: calc(100dvh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgb(255 255 255 / 40%) transparent;
    scrollbar-width: thin;
    padding: 28px clamp(22px, 2.8vw, 44px);
}
.auth-plans-panel .panel-grid { pointer-events: none; }
.auth-plans-content { position: relative; z-index: 1; flex: none; }
.auth-plans-panel .panel-heading { margin: 0 0 22px; }
.auth-plans-panel .panel-heading h2 { font-size: clamp(28px, 2.5vw, 38px); }
.auth-plans-panel .panel-heading .panel-description { margin-top: 10px; }
.auth-plan-groups { display: grid; gap: 28px; }
.auth-plan-group { display: grid; gap: 14px; }
.auth-plan-group--empresa { --auth-plan-mark: #44618d; }
.auth-plan-group--contador { --auth-plan-mark: #496b80; }
.auth-plan-group > h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #b8cce2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.auth-plan-group > h3::after { content: ""; height: 1px; flex: 1; background: rgb(197 222 246 / 24%); }
.auth-plan-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid #d6e0ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px -23px rgb(4 26 58 / 35%);
    color: #192b44;
}
.auth-plan-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--auth-plan-mark);
}
.auth-plan-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 26px 0 30px;
}
.auth-plan-card-caption { display: block; color: #56718e; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.auth-plan-card-heading h4 { margin: 7px 0 0; color: #142c4a; font-size: 22px; line-height: 1.15; letter-spacing: -.045em; }
.auth-plan-card-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 19px 26px 23px 30px;
    color: #142c4a;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.auth-plan-card-currency { color: #56718e; font-size: 15px; font-weight: 700; }
.auth-plan-card-price strong { font-size: clamp(30px, 2.7vw, 36px); font-weight: 800; letter-spacing: -.07em; }
.auth-plan-card-period { margin-left: 4px; color: #61758c; font-size: 12px; font-weight: 650; white-space: nowrap; }
.auth-plan-card-section-label {
    margin: 0 26px 0 30px;
    padding-top: 14px;
    border-top: 1px solid #dbe4ef;
    color: #56718e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.auth-plan-card-capacity {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    margin: 0;
    padding: 4px 26px 15px 30px;
}
.auth-plan-card-capacity > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 10px 0;
    border-bottom: 1px solid #e9eef5;
}
.auth-plan-card-capacity dt { color: #566b82; font-size: 11px; font-weight: 650; line-height: 1.4; }
.auth-plan-card-capacity dt span { white-space: nowrap; }
.auth-plan-card-capacity dd { margin: 0; color: #142c4a; font-size: 14px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 821px) {
    .auth-layout-cadastro { height: 100dvh; min-height: 0; overflow: hidden; }
    .auth-layout-cadastro > .access-panel { height: calc(100dvh - 32px); min-height: 0; overflow: hidden; }
    .auth-layout-cadastro > .access-panel .access-main { min-height: 0; overflow-y: auto; scrollbar-width: none; }
    .auth-layout-cadastro > .access-panel .access-main::-webkit-scrollbar { display: none; }
}
@media (min-width: 821px) and (max-width: 1150px) {
    .auth-layout-cadastro > .access-panel,
    .auth-plans-panel { height: calc(100dvh - 24px); }
    .auth-plans-panel { top: 12px; max-height: calc(100dvh - 24px); }
}
@media (min-width: 1600px) {
    .auth-layout-cadastro > .access-panel,
    .auth-plans-panel { height: calc(100dvh - 48px); }
    .auth-plans-panel { top: 24px; max-height: calc(100dvh - 48px); }
}
@media (max-width: 820px) {
    .auth-layout-cadastro { height: auto; min-height: 100svh; overflow: visible; }
    .auth-layout-cadastro > .access-panel { height: auto; min-height: 100svh; overflow: visible; }
    .auth-layout-cadastro > .access-panel .access-main { overflow: visible; }
    .auth-plans-panel {
        display: flex;
        position: relative;
        top: auto;
        height: auto;
        max-height: none;
        overflow: visible;
        margin: 0 16px 16px;
        border-radius: 18px;
        padding: 28px 24px;
    }
    .auth-plans-panel .panel-heading { text-align: left; }
    .auth-plan-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 560px) {
    .auth-plan-groups { grid-template-columns: minmax(0, 1fr); }
    .auth-plans-panel { padding: 24px 20px; }
    .auth-registration-links { gap: 4px 12px; font-size: 14px; }
}

@media (max-width: 380px) {
    .auth-plan-card-heading { padding: 21px 20px 0 24px; }
    .auth-plan-card-price { padding: 17px 20px 20px 24px; }
    .auth-plan-card-section-label { margin: 0 20px 0 24px; }
    .auth-plan-card-capacity { padding: 4px 20px 14px 24px; }
    .auth-plan-card-capacity { grid-template-columns: 1fr; gap: 0; }
    .auth-plan-card-capacity > div { padding: 10px 0; }
    .auth-plan-card-capacity dt { font-size: 10px; }
}
