/* Portal A&C — entrada e autenticação | Fase 1.2.1 */
:root {
    --access-navy: #07142f;
    --access-navy-soft: #0d2048;
    --access-blue: #1769e0;
    --access-cyan: #20b7cc;
    --access-cream: #f7f6f2;
    --access-paper: #fff;
    --access-ink: #10203b;
    --access-muted: #66738a;
    --access-line: #dfe5ee;
    --access-danger: #b42318;
    --access-danger-bg: #fff1f0;
    --access-shadow: 0 35px 90px rgba(2, 12, 32, 0.3);
}

* {
    box-sizing: border-box;
}

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

.access-body {
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--access-ink);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.access-body button,
.access-body input {
    font: inherit;
}

.access-body a {
    color: inherit;
}

.access-body svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.access-brand {
    align-items: center;
    display: inline-flex;
    gap: 12px;
    text-decoration: none;
}

.access-brand-mark {
    align-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 15px;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    overflow: hidden;
    width: 48px;
}

.access-brand-mark img {
    height: 35px;
    object-fit: contain;
    width: 35px;
}

.access-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.access-brand-copy strong {
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.015em;
}

.access-brand-copy small {
    font-size: 10px;
    letter-spacing: 0.06em;
    opacity: 0.7;
    text-transform: uppercase;
}

.access-brand-light {
    color: #fff;
}

.access-eyebrow {
    color: #75e7f3;
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.access-eyebrow-dark {
    color: var(--access-blue);
}

/* Entrada */
.access-home {
    background: var(--access-navy);
    color: #fff;
    display: grid;
    grid-template-rows: auto 1fr auto;
    isolation: isolate;
    overflow-x: hidden;
    padding: 0 6vw;
    position: relative;
}

.access-home::before {
    background:
        radial-gradient(circle at 13% 30%, rgba(32, 183, 204, 0.24), transparent 30%),
        radial-gradient(circle at 85% 90%, rgba(23, 105, 224, 0.18), transparent 32%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

.access-home-photo,
.access-home-overlay {
    height: 100%;
    inset: 0;
    position: fixed;
    width: 100%;
    z-index: -3;
}

.access-home-photo {
    object-fit: cover;
    object-position: center 43%;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.7s ease, transform 1.4s ease;
}

.access-home-photo.loaded {
    opacity: 1;
    transform: scale(1);
}

.access-home-overlay {
    background:
        linear-gradient(90deg, rgba(5, 17, 43, 0.98) 0%, rgba(5, 17, 43, 0.93) 36%, rgba(5, 17, 43, 0.64) 69%, rgba(5, 17, 43, 0.72) 100%),
        linear-gradient(180deg, rgba(4, 14, 34, 0.08), rgba(4, 14, 34, 0.52));
    z-index: -2;
}

.access-home-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 96px;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.access-security {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    display: inline-flex;
    font-size: 12px;
    font-weight: 650;
    gap: 8px;
    padding: 9px 13px;
}

.access-security svg {
    color: #70e1ed;
    height: 17px;
    width: 17px;
}

.access-home-main {
    align-items: center;
    display: grid;
    gap: clamp(48px, 8vw, 130px);
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.72fr);
    margin: auto;
    max-width: 1280px;
    padding: clamp(32px, 6vh, 78px) 0;
    width: 100%;
}

.home-intro {
    max-width: 680px;
}

.home-intro h1 {
    font-size: clamp(48px, 5.3vw, 82px);
    font-weight: 760;
    letter-spacing: -0.055em;
    line-height: 0.98;
    margin: 22px 0 26px;
    max-width: 700px;
}

.home-intro h1 em {
    color: #73e4ef;
    font-style: normal;
    position: relative;
    white-space: nowrap;
}

.home-intro h1 em::after {
    background: #73e4ef;
    border-radius: 99px;
    bottom: -6px;
    content: "";
    height: 4px;
    left: 3px;
    opacity: 0.65;
    position: absolute;
    transform: rotate(-1deg);
    width: 95%;
}

.home-intro > p {
    color: rgba(236, 243, 255, 0.78);
    font-size: clamp(16px, 1.45vw, 20px);
    line-height: 1.72;
    margin: 0;
    max-width: 610px;
}

.home-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 11px 18px;
    margin-top: 36px;
}

.home-benefits span {
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
}

.home-benefits svg {
    background: rgba(88, 217, 230, 0.14);
    border-radius: 50%;
    color: #6ce0eb;
    height: 21px;
    padding: 4px;
    stroke-width: 2.4;
    width: 21px;
}

.home-access-card {
    backdrop-filter: blur(22px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 30px;
    box-shadow: var(--access-shadow);
    color: var(--access-ink);
    padding: clamp(28px, 3.1vw, 44px);
    position: relative;
}

.home-access-card::before {
    background: linear-gradient(90deg, var(--access-blue), var(--access-cyan));
    border-radius: 99px;
    content: "";
    height: 4px;
    left: 44px;
    position: absolute;
    top: 0;
    width: 74px;
}

.home-access-heading > span {
    color: var(--access-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.home-access-heading h2 {
    font-size: clamp(25px, 2.2vw, 34px);
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin: 10px 0 8px;
}

.home-access-heading p {
    color: var(--access-muted);
    font-size: 14px;
    margin: 0;
}

.home-role-list {
    display: grid;
    gap: 13px;
    margin-top: 28px;
}

.home-role-card {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--access-line);
    border-radius: 18px;
    display: grid;
    gap: 15px;
    grid-template-columns: auto 1fr auto;
    padding: 17px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.home-role-card:hover,
.home-role-card:focus-visible {
    background: #fff;
    border-color: rgba(23, 105, 224, 0.38);
    box-shadow: 0 14px 30px rgba(21, 57, 113, 0.12);
    outline: none;
    transform: translateY(-2px);
}

.home-role-icon {
    align-items: center;
    background: rgba(32, 183, 204, 0.12);
    border-radius: 14px;
    color: #087f94;
    display: flex;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.role-team .home-role-icon {
    background: rgba(23, 105, 224, 0.1);
    color: var(--access-blue);
}

.home-role-icon svg {
    height: 25px;
    width: 25px;
}

.home-role-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.home-role-copy strong {
    font-size: 15px;
    font-weight: 760;
}

.home-role-copy small {
    color: var(--access-muted);
    font-size: 12px;
    line-height: 1.4;
}

.home-role-arrow {
    align-items: center;
    color: #8390a3;
    display: flex;
    height: 34px;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    width: 34px;
}

.home-role-arrow svg {
    height: 19px;
    width: 19px;
}

.home-role-card:hover .home-role-arrow {
    color: var(--access-blue);
    transform: translateX(3px);
}

.home-access-help {
    border-top: 1px solid var(--access-line);
    color: var(--access-muted);
    font-size: 11px;
    line-height: 1.55;
    margin: 24px 0 0;
    padding-top: 20px;
    text-align: center;
}

.home-access-help strong {
    color: #33435c;
    font-weight: 700;
}

.access-home-footer {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.54);
    display: flex;
    font-size: 11px;
    justify-content: space-between;
    min-height: 64px;
    padding: 14px 0;
}

/* Login */
.access-login {
    align-items: center;
    background:
        radial-gradient(circle at 14% 10%, rgba(32, 183, 204, 0.12), transparent 35%),
        var(--access-cream);
    display: flex;
    justify-content: center;
    padding: 28px;
}

.access-login-shell {
    background: var(--access-paper);
    border: 1px solid rgba(213, 220, 231, 0.8);
    border-radius: 34px;
    box-shadow: 0 30px 90px rgba(23, 42, 75, 0.2);
    display: grid;
    grid-template-columns: minmax(390px, 0.9fr) minmax(430px, 1fr);
    min-height: min(850px, calc(100dvh - 56px));
    max-width: 1240px;
    overflow: hidden;
    width: 100%;
}

.access-back {
    align-items: center;
    backdrop-filter: blur(12px);
    background: rgba(7, 20, 47, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff !important;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    left: 46px;
    padding: 10px 14px 10px 11px;
    position: fixed;
    text-decoration: none;
    top: 46px;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 20;
}

.access-back:hover,
.access-back:focus-visible {
    background: rgba(7, 20, 47, 0.95);
    outline: none;
    transform: translateX(-2px);
}

.access-back svg {
    height: 18px;
    width: 18px;
}

.login-visual {
    background: var(--access-navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    justify-content: space-between;
    overflow: hidden;
    padding: 43px 48px;
    position: relative;
}

.login-visual::before,
.login-visual::after {
    content: "";
    inset: 0;
    position: absolute;
    z-index: -1;
}

.login-visual::before {
    background-image: var(--access-photo);
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
}

.login-visual::after {
    background:
        radial-gradient(circle at 15% 18%, rgba(32, 183, 204, 0.34), transparent 34%),
        linear-gradient(180deg, rgba(7, 20, 47, 0.58), rgba(7, 20, 47, 0.96));
}

.access-team .login-visual::after {
    background:
        radial-gradient(circle at 14% 17%, rgba(78, 121, 232, 0.31), transparent 34%),
        linear-gradient(180deg, rgba(7, 20, 47, 0.61), rgba(7, 20, 47, 0.97));
}

.login-visual-copy {
    margin: auto 0;
    max-width: 500px;
    padding: 78px 0 70px;
}

.login-visual-copy h2 {
    font-size: clamp(36px, 3.6vw, 55px);
    font-weight: 740;
    letter-spacing: -0.045em;
    line-height: 1.04;
    margin: 22px 0 22px;
}

.login-visual-copy > p {
    color: rgba(235, 242, 255, 0.78);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.access-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    margin-top: 32px;
}

.access-trust-list span {
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    display: inline-flex;
    font-size: 11px;
    font-weight: 600;
    gap: 7px;
}

.access-trust-list svg {
    color: #6ee2ec;
    height: 16px;
    stroke-width: 2.5;
    width: 16px;
}

.login-visual-footer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    margin: 0;
}

.login-form-panel {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: center;
    padding: clamp(45px, 6vw, 88px);
}

.login-form-wrap {
    max-width: 430px;
    width: 100%;
}

.access-role-switch {
    background: #f0f3f7;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 42px;
    padding: 4px;
}

.access-role-switch a {
    border-radius: 9px;
    color: #758197;
    font-size: 12px;
    font-weight: 750;
    padding: 9px 12px;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.access-role-switch a.active {
    background: #fff;
    box-shadow: 0 3px 10px rgba(30, 50, 80, 0.1);
    color: var(--access-ink);
}

.login-heading h1 {
    color: var(--access-ink);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 760;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin: 13px 0 12px;
}

.login-heading > p {
    color: var(--access-muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

.access-alert {
    align-items: flex-start;
    background: var(--access-danger-bg);
    border: 1px solid #fecaca;
    border-radius: 13px;
    color: var(--access-danger);
    display: flex;
    font-size: 12px;
    gap: 10px;
    line-height: 1.5;
    margin-top: 24px;
    padding: 12px 14px;
}

.access-alert svg {
    flex: 0 0 auto;
    height: 18px;
    margin-top: 1px;
    width: 18px;
}

.access-form {
    display: grid;
    gap: 19px;
    margin-top: 32px;
}

.access-field label {
    color: #263650;
    display: block;
    font-size: 12px;
    font-weight: 720;
    margin-bottom: 8px;
}

.access-input-wrap {
    align-items: center;
    background: #fbfcfd;
    border: 1px solid #d9e0e9;
    border-radius: 13px;
    display: flex;
    min-height: 52px;
    padding: 0 14px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.access-input-wrap:focus-within {
    background: #fff;
    border-color: var(--access-blue);
    box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.1);
}

.access-input-wrap > svg {
    color: #8995a8;
    flex: 0 0 auto;
    height: 19px;
    width: 19px;
}

.access-input-wrap input {
    background: transparent;
    border: 0;
    color: var(--access-ink);
    font-size: 14px;
    min-width: 0;
    outline: none;
    padding: 15px 12px;
    width: 100%;
}

.access-input-wrap input::placeholder {
    color: #9aa4b4;
}

.password-toggle {
    align-items: center;
    background: none;
    border: 0;
    border-radius: 8px;
    color: #8190a5;
    cursor: pointer;
    display: flex;
    flex: 0 0 auto;
    height: 34px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: #eef2f7;
    color: var(--access-blue);
    outline: none;
}

.password-toggle svg {
    height: 19px;
    width: 19px;
}

.password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
    display: block;
}

.access-submit {
    align-items: center;
    background: linear-gradient(135deg, #0d5fd1, #1878e9);
    border: 0;
    border-radius: 13px;
    box-shadow: 0 12px 25px rgba(23, 105, 224, 0.22);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 760;
    gap: 10px;
    justify-content: center;
    min-height: 52px;
    padding: 13px 18px;
    transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.access-submit:hover,
.access-submit:focus-visible {
    box-shadow: 0 16px 32px rgba(23, 105, 224, 0.3);
    filter: brightness(1.04);
    outline: none;
    transform: translateY(-1px);
}

.access-submit svg {
    height: 18px;
    transition: transform 0.2s ease;
    width: 18px;
}

.access-submit:hover svg {
    transform: translateX(3px);
}

.login-support {
    align-items: center;
    border-top: 1px solid var(--access-line);
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 22px;
}

.support-icon {
    align-items: center;
    background: #edf7f8;
    border-radius: 11px;
    color: #13899a;
    display: flex;
    flex: 0 0 auto;
    height: 38px;
    justify-content: center;
    width: 38px;
}

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

.login-support p {
    color: var(--access-muted);
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
}

.login-support strong {
    color: #394a63;
    font-weight: 720;
}

@media (max-width: 1024px) {
    .access-home {
        padding: 0 5vw;
    }

    .access-home-main {
        gap: 42px;
        grid-template-columns: minmax(0, 1fr) minmax(350px, 0.72fr);
    }

    .access-login-shell {
        grid-template-columns: minmax(330px, 0.8fr) minmax(410px, 1fr);
    }

    .login-visual {
        padding: 38px;
    }

    .login-form-panel {
        padding: 50px;
    }
}

@media (max-width: 820px) {
    .access-home {
        min-height: 100dvh;
    }

    .access-home-overlay {
        background: linear-gradient(180deg, rgba(5, 17, 43, 0.92), rgba(5, 17, 43, 0.84));
    }

    .access-home-main {
        gap: 44px;
        grid-template-columns: 1fr;
        padding: 48px 0;
    }

    .home-intro {
        max-width: 620px;
    }

    .home-access-card {
        max-width: 560px;
        width: 100%;
    }

    .access-login {
        background: #fff;
        padding: 0;
    }

    .access-login-shell {
        border: 0;
        border-radius: 0;
        box-shadow: none;
        grid-template-columns: 1fr;
        min-height: 100dvh;
    }

    .login-visual {
        min-height: 340px;
        padding: 32px;
    }

    .login-visual-copy {
        padding: 56px 0 36px;
    }

    .login-visual-copy h2 {
        max-width: 620px;
    }

    .login-visual-footer {
        display: none;
    }

    .login-form-panel {
        padding: 58px 32px 70px;
    }

    .access-back {
        left: auto;
        right: 24px;
        top: 24px;
    }
}

@media (max-width: 560px) {
    .access-home {
        padding: 0 20px;
    }

    .access-home-header {
        min-height: 82px;
    }

    .access-security {
        font-size: 0;
        height: 39px;
        justify-content: center;
        padding: 0;
        width: 39px;
    }

    .access-security svg {
        height: 18px;
        width: 18px;
    }

    .access-brand-mark {
        border-radius: 13px;
        height: 43px;
        width: 43px;
    }

    .access-brand-mark img {
        height: 31px;
        width: 31px;
    }

    .home-intro h1 {
        font-size: clamp(42px, 13vw, 62px);
    }

    .home-intro > p {
        font-size: 15px;
    }

    .home-benefits {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 28px;
    }

    .home-access-card {
        border-radius: 24px;
        padding: 29px 20px 23px;
    }

    .home-access-card::before {
        left: 26px;
    }

    .home-role-card {
        gap: 12px;
        padding: 14px;
    }

    .home-role-icon {
        height: 45px;
        width: 45px;
    }

    .home-role-copy strong {
        font-size: 14px;
    }

    .home-role-copy small {
        font-size: 11px;
    }

    .home-role-arrow {
        width: 24px;
    }

    .access-home-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        justify-content: center;
    }

    .login-visual {
        min-height: 310px;
        padding: 25px 22px;
    }

    .login-visual-copy {
        padding: 56px 0 22px;
    }

    .login-visual-copy h2 {
        font-size: 34px;
        margin: 16px 0 14px;
    }

    .login-visual-copy > p {
        font-size: 13px;
    }

    .access-trust-list {
        display: none;
    }

    .login-form-panel {
        padding: 43px 22px 60px;
    }

    .access-role-switch {
        margin-bottom: 34px;
    }

    .access-back {
        right: 18px;
        top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .access-body *,
    .access-body *::before,
    .access-body *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
