/* ClimaVerde — login central com composição abstrata em CSS e SVG. */
:root {
    --ink: #263f36;
    --muted: #61766c;
    --accent: #287d72;
    --line: #ccd9cf;
}

* {
    box-sizing: border-box;
}

body {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    background: #e9eee5;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

button:focus-visible, input:focus-visible, a:focus-visible {
    outline: 3px solid #287d72;
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

/* Fundo decorativo: não interfere com cliques nem com a leitura. */
.artwork {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 16% 12%, #faf9ec 0%, transparent 48%),
        radial-gradient(ellipse at 91% 84%, #dce7df 0%, transparent 50%),
        #e9eee5;
}

.orb {
    position: absolute;
    border-radius: 50%;
}

.orb-sage {
    width: clamp(540px, 65vw, 1000px);
    aspect-ratio: 1;
    left: 50%;
    top: 50%;
    transform: translate(-78%, -44%) rotate(-25deg);
    background:
        radial-gradient(circle at 28% 24%, #d5dfb6 0%, #9cb294 35%,
        #6b9380 64%, #345d50 100%);
    box-shadow:
        inset -30px -30px 70px #244d4330,
        25px 35px 90px #3c65541a;
}

.orb-teal {
    width: clamp(380px, 45vw, 690px);
    aspect-ratio: 1;
    left: 50%;
    top: 50%;
    transform: translate(1%, -32%);
    background:
        radial-gradient(circle at 28% 24%, #71ada0 0%, #397f74 40%,
        #285a50 74%, #204a40 100%);
    box-shadow:
        inset -25px -30px 65px #153d3c38,
        25px 30px 70px #234e4224;
}

.orb-light {
    width: clamp(170px, 22vw, 340px);
    aspect-ratio: 1;
    left: calc(50% + 190px);
    top: calc(50% - 370px);
    background:
        radial-gradient(circle at 30% 25%, #fffce8 0%, #e2e7bc 45%,
        #b9ccaa 100%);
    box-shadow: 10px 25px 70px #506c3820;
}

.orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1060px;
    height: 610px;
    border: 1px solid #faffeb65;
    border-radius: 50%;
    transform: translate(-50%, -42%) rotate(-33deg);
}

.orbit-two {
    width: 1110px;
    height: 650px;
    border-color: #faffeb40;
}

.orbit-three {
    width: 1160px;
    height: 690px;
    border-color: #faffeb25;
}

.flow-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    stroke: #faffee;
    stroke-width: 1;
    opacity: .22;
}

/* Identidade e rodapé ficam fora da composição do formulário. */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 44px;
}

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

.brand-symbol {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid #496b554a;
    border-radius: 14px;
    background: #ffffff3b;
    font-size: 16px;
    font-weight: 650;
}

.brand-text strong {
    display: block;
    font-size: 22px;
    letter-spacing: -.7px;
}

.brand-text small {
    display: block;
    margin-top: 4px;
    color: #536c5d;
    font-size: 9px;
    letter-spacing: 3px;
}

.header-label {
    color: #536b5e;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2.3px;
}

.login-stage {
    display: grid;
    place-items: center;
    min-height: calc(100svh - 164px);
    padding: 24px;
}

.login-card {
    width: min(100%, 460px);
    padding: 28px 42px 25px;
    border: 1px solid #ffffffd9;
    border-radius: 28px;
    background: rgba(250, 252, 247, .94);
    box-shadow:
        0 30px 90px #173f3524,
        0 4px 16px #173f350a,
        inset 0 1px 0 #ffffff;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.eyebrow {
    color: #557261;
    font-size: 8px;
    font-weight: 650;
    letter-spacing: 1.7px;
}

.language {
    padding: 5px 7px;
    border: 1px solid #d6dfd4;
    border-radius: 6px;
    color: #5a7063;
    font-size: 9px;
}

.entry-symbol {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 28px auto 17px;
    border: 1px solid #d5e0cd;
    border-radius: 17px;
    background: linear-gradient(145deg, #edf2df, #e0ebde);
    color: #42694f;
}

.entry-symbol svg {
    width: 39px;
    height: 39px;
}

h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(35px, 4vw, 43px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -1.7px;
}

h1 em {
    color: #46775d;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -1.8px;
}

.intro {
    margin: 17px 0 28px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.field {
    margin-bottom: 19px;
}

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

.field input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffffdc;
    color: var(--ink);
    font-size: 14px;
    transition: border-color .15s, background .15s;
}

.field input:hover {
    border-color: #8baa97;
}

.field input:focus {
    background: white;
}

.field input::placeholder {
    color: #74867b;
    font-size: 12px;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 82px;
}

.toggle-password {
    position: absolute;
    inset: 5px 5px 5px auto;
    padding: 0 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #436d5b;
    font-size: 10px;
    font-weight: 600;
}

.toggle-password:hover {
    background: #edf3eb;
}

.submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    margin-top: 25px;
    padding: 12px 14px 12px 19px;
    border: 1px solid #286659;
    border-radius: 11px;
    background: linear-gradient(110deg, #345e4e, #287d72);
    color: white;
    box-shadow: 0 5px 15px #285a4f18;
    font-size: 12px;
    font-weight: 600;
    transition: transform .15s, box-shadow .15s;
}

.submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px #285a4f30;
}

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

.submit-arrow {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #ffffff15;
    font-size: 19px;
    font-weight: 400;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #dce5d7;
    color: #5f7366;
    font-size: 9px;
    line-height: 1.5;
}

.card-footer svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.feedback {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #e8cfc4;
    border-radius: 9px;
    background: #fff2eb;
    color: #874635;
    font-size: 12px;
    line-height: 1.6;
}

.feedback.success {
    border-color: #c8dfc9;
    background: #edf5e9;
    color: #3d6547;
}

.retry {
    display: block;
    margin: 14px auto 0;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: #286c5e;
    text-decoration: underline;
    font-size: 11px;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 44px;
    color: #405c4f;
    font-size: 10px;
}

@media (max-width: 650px) {
    .page-header {
        padding: 22px;
    }

    .header-label {
        display: none;
    }

    .login-stage {
        min-height: calc(100svh - 152px);
        padding: 18px;
    }

    .login-card {
        padding: 25px;
        border-radius: 23px;
    }

    .orb-sage {
        transform: translate(-75%, -54%);
    }

    .orb-teal {
        transform: translate(-5%, -5%);
    }

    .orb-light {
        left: auto;
        right: -55px;
        top: 70px;
    }

    .page-footer {
        padding: 20px 22px;
        flex-wrap: wrap;
        font-size: 9px;
    }
}

@media (max-width: 360px) {
    .login-card {
        padding: 22px 18px;
    }

    .eyebrow {
        letter-spacing: 1px;
    }

    .desktop-break {
        display: none;
    }
}

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