:root {
    --eco-bg-1: #03170d;
    --eco-bg-2: #064e3b;
    --eco-bg-3: #16a34a;
    --eco-green: #22c55e;
    --eco-green-soft: #86efac;
    --eco-lime: #bef264;
    --eco-mint: #d1fae5;
    --eco-text: #ecfdf5;
    --eco-muted: #a7f3d0;
    --eco-card: rgba(3, 32, 18, 0.78);
    --eco-card-border: rgba(134, 239, 172, 0.25);
    --eco-danger: #f87171;
    --eco-danger-bg: rgba(127, 29, 29, 0.35);
    --eco-success: #86efac;
    --eco-success-bg: rgba(20, 83, 45, 0.45);
    --eco-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

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

body.eco-auth-page {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--eco-text);
    background:
        radial-gradient(circle at 15% 15%, rgba(190, 242, 100, 0.22), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(34, 197, 94, 0.28), transparent 30%),
        radial-gradient(circle at 70% 85%, rgba(20, 184, 166, 0.22), transparent 28%),
        linear-gradient(135deg, var(--eco-bg-1), var(--eco-bg-2) 52%, #052e16);
    overflow-x: hidden;
}

.eco-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.leaf {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 52% 48% 58% 42%;
    background:
        linear-gradient(135deg, rgba(190, 242, 100, 0.16), rgba(34, 197, 94, 0.05));
    filter: blur(1px);
    opacity: 0.7;
    animation: ecoFloat 12s ease-in-out infinite;
}

.leaf-1 {
    top: 8%;
    left: 5%;
}

.leaf-2 {
    top: 62%;
    left: 75%;
    animation-delay: -3s;
}

.leaf-3 {
    top: 72%;
    left: 8%;
    width: 140px;
    height: 140px;
    animation-delay: -5s;
}

.leaf-4 {
    top: 12%;
    left: 78%;
    width: 170px;
    height: 170px;
    animation-delay: -8s;
}

@keyframes ecoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-24px) rotate(12deg);
    }
}

.eco-auth-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
    padding: 48px 0;
}

.eco-auth-brand {
    padding: 34px;
}

.eco-logo {
    width: 84px;
    height: 84px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, rgba(190, 242, 100, 0.95), rgba(34, 197, 94, 0.95));
    color: #052e16;
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: -0.06em;
    box-shadow:
        0 20px 60px rgba(34, 197, 94, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    margin-bottom: 28px;
}

.eco-eyebrow {
    margin: 0 0 14px;
    color: var(--eco-lime);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eco-auth-brand h1 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(2.4rem, 5vw, 5.2rem);
    line-height: 0.92;
    letter-spacing: -0.075em;
}

.eco-description {
    max-width: 620px;
    margin: 26px 0 0;
    color: var(--eco-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.eco-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 560px;
    margin-top: 34px;
}

.eco-stats div {
    border: 1px solid rgba(134, 239, 172, 0.24);
    background: rgba(3, 32, 18, 0.38);
    border-radius: 22px;
    padding: 16px;
    backdrop-filter: blur(14px);
}

.eco-stats strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.eco-stats span {
    color: var(--eco-mint);
    font-size: 0.9rem;
    font-weight: 700;
}

.eco-auth-card {
    width: 100%;
    max-width: 480px;
    justify-self: end;
    padding: 34px;
    border-radius: 34px;
    border: 1px solid var(--eco-card-border);
    background:
        linear-gradient(180deg, rgba(6, 78, 59, 0.75), rgba(3, 32, 18, 0.82)),
        var(--eco-card);
    box-shadow: var(--eco-shadow);
    backdrop-filter: blur(26px);
}

.eco-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.eco-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: rgba(190, 242, 100, 0.14);
    border: 1px solid rgba(190, 242, 100, 0.28);
    font-size: 1.7rem;
}

.eco-card-header h2 {
    margin: 0;
    font-size: 1.75rem;
    letter-spacing: -0.04em;
}

.eco-card-header p {
    margin: 4px 0 0;
    color: var(--eco-muted);
}

.eco-form {
    display: grid;
    gap: 18px;
}

.eco-form-group {
    display: grid;
    gap: 8px;
}

.eco-form-group label {
    color: var(--eco-mint);
    font-size: 0.88rem;
    font-weight: 800;
}

.eco-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid rgba(134, 239, 172, 0.22);
    background: rgba(1, 20, 10, 0.42);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.eco-input-wrap:focus-within {
    border-color: rgba(190, 242, 100, 0.72);
    background: rgba(1, 30, 14, 0.7);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
    transform: translateY(-1px);
}

.eco-input-wrap span {
    color: var(--eco-lime);
    font-weight: 900;
}

.eco-input-wrap input,
.eco-input-wrap select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--eco-text);
    font: inherit;
    min-width: 0;
}

.eco-input-wrap input::placeholder {
    color: rgba(209, 250, 229, 0.48);
}

.eco-input-wrap select {
    cursor: pointer;
}

.eco-input-wrap select option {
    background: #052e16;
    color: #ecfdf5;
}

.eco-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.eco-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--eco-muted);
    font-size: 0.9rem;
    cursor: pointer;
}

.eco-check input {
    accent-color: var(--eco-green);
}

.eco-btn {
    min-height: 54px;
    border: 0;
    border-radius: 18px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease;
}

.eco-btn:hover {
    transform: translateY(-2px);
}

.eco-btn:active {
    transform: translateY(0);
}

.eco-btn-primary {
    color: #052e16;
    background:
        linear-gradient(135deg, var(--eco-lime), var(--eco-green));
    box-shadow:
        0 18px 38px rgba(34, 197, 94, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.eco-btn-primary:hover {
    filter: saturate(1.12) brightness(1.05);
    box-shadow:
        0 24px 52px rgba(34, 197, 94, 0.38),
        inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.eco-auth-footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--eco-muted);
    font-size: 0.94rem;
}

.eco-auth-footer a {
    color: var(--eco-lime);
    font-weight: 900;
    text-decoration: none;
}

.eco-auth-footer a:hover {
    text-decoration: underline;
}

.eco-alert {
    padding: 13px 15px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-size: 0.92rem;
    font-weight: 700;
}

.eco-alert-error {
    color: #fee2e2;
    background: var(--eco-danger-bg);
    border: 1px solid rgba(248, 113, 113, 0.38);
}

.eco-alert-success {
    color: var(--eco-success);
    background: var(--eco-success-bg);
    border: 1px solid rgba(134, 239, 172, 0.32);
}

@media (max-width: 920px) {
    .eco-auth-shell {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 28px 0;
    }

    .eco-auth-brand {
        padding: 18px 4px;
        text-align: center;
    }

    .eco-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .eco-description {
        margin-left: auto;
        margin-right: auto;
    }

    .eco-stats {
        margin-left: auto;
        margin-right: auto;
    }

    .eco-auth-card {
        justify-self: center;
        max-width: 560px;
    }
}

@media (max-width: 560px) {
    .eco-auth-shell {
        width: min(100% - 20px, 1180px);
    }

    .eco-auth-card {
        padding: 24px;
        border-radius: 26px;
    }

    .eco-auth-brand h1 {
        font-size: 2.45rem;
    }

    .eco-stats {
        grid-template-columns: 1fr;
    }

    .eco-card-header {
        align-items: flex-start;
    }
}

.eco-actions-stack {
    display: grid;
    gap: 12px;
}

.eco-btn-secondary {
    color: var(--eco-mint);
    background: rgba(20, 83, 45, 0.55);
    border: 1px solid rgba(134, 239, 172, 0.25);
}

.eco-btn-secondary:hover {
    background: rgba(20, 83, 45, 0.75);
}

.eco-btn-ghost {
    color: var(--eco-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(134, 239, 172, 0.16);
}

.eco-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ================================
   Botões da página acesso-negado
   ================================ */

.eco-actions-stack {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.eco-btn,
a.eco-btn,
button.eco-btn {
    width: 100%;
    min-height: 54px;
    border-radius: 18px;
    border: 1px solid transparent;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    font: inherit;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;

    cursor: pointer;
    appearance: none;

    transition:
        transform 160ms ease,
        filter 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.eco-btn:hover,
a.eco-btn:hover,
button.eco-btn:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

.eco-btn:active,
a.eco-btn:active,
button.eco-btn:active {
    transform: translateY(0);
}

.eco-btn-primary,
a.eco-btn-primary,
button.eco-btn-primary {
    color: #052e16 !important;
    background: linear-gradient(135deg, #bef264, #22c55e);
    border-color: rgba(190, 242, 100, 0.35);
    box-shadow:
        0 18px 38px rgba(34, 197, 94, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.eco-btn-primary:hover,
a.eco-btn-primary:hover,
button.eco-btn-primary:hover {
    filter: brightness(1.05) saturate(1.1);
    box-shadow:
        0 24px 52px rgba(34, 197, 94, 0.38),
        inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.eco-btn-secondary,
a.eco-btn-secondary,
button.eco-btn-secondary {
    color: #d1fae5 !important;
    background: rgba(20, 83, 45, 0.55);
    border-color: rgba(134, 239, 172, 0.25);
}

.eco-btn-secondary:hover,
a.eco-btn-secondary:hover,
button.eco-btn-secondary:hover {
    background: rgba(20, 83, 45, 0.78);
}

.eco-btn-ghost,
a.eco-btn-ghost,
button.eco-btn-ghost {
    color: #a7f3d0 !important;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(134, 239, 172, 0.16);
}

.eco-btn-ghost:hover,
a.eco-btn-ghost:hover,
button.eco-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}
