:root {
    --verde: #216c39;
    --verde-dark: #184f2b;
    --amarelo: #f9d22d;
    --laranja: #fba309;

    --texto: #1e293b;
    --muted: #64748b;

    --borda: #e2e8f0;

    --fundo: #fffcf7;
    --branco: #ffffff;

    --erro: #dc2626;
    --sucesso: #16a34a;

    --shadow-sm: 0 8px 24px rgba(15, 23, 42, .08);
    --shadow-md: 0 18px 40px rgba(15, 23, 42, .10);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(
            circle at top left,
            rgba(249, 210, 45, .15),
            transparent 40%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(33, 108, 57, .08),
            transparent 40%
        ),
        var(--fundo);

    color: var(--texto);

    font-family: "Roboto", sans-serif;

    min-height: 100vh;
}

.auth-page {
    min-height: calc(100vh - 220px);

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

    padding: 40px 16px 60px;
}

.auth-card {
    width: 100%;
    max-width: 560px;

    background: var(--branco);

    border: 1px solid var(--borda);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);

    padding: 36px;

    position: relative;

    overflow: hidden;
}

.auth-card::before {
    content: '';

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 6px;

    background:
        linear-gradient(
            90deg,
            var(--verde),
            var(--amarelo),
            var(--laranja)
        );
}

.auth-brand {
    text-align: center;

    margin-bottom: 28px;
}

.auth-brand img {
    width: auto;
    height: 72px;

    display: block;

    margin: 0 auto 18px;
}

.auth-brand h1 {
    margin: 0 0 10px;

    font-size: clamp(2rem, 5vw, 2.6rem);

    color: var(--verde);

    font-weight: 900;

    line-height: 1.1;
}

.auth-brand p {
    margin: 0;

    color: var(--muted);

    font-size: 1rem;

    line-height: 1.6;
}

.auth-form {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.form-group label {
    font-weight: 800;

    color: var(--texto);

    font-size: .95rem;
}

.form-group input {
    width: 100%;

    height: 52px;

    border: 1px solid var(--borda);

    border-radius: var(--radius-sm);

    padding: 0 16px;

    font-size: 1rem;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.form-group input:focus {
    border-color: var(--verde);

    box-shadow:
        0 0 0 4px rgba(33, 108, 57, .10);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.auth-btn {
    width: 100%;

    height: 54px;

    border: 0;

    border-radius: var(--radius-md);

    background: var(--verde);

    color: white;

    font-size: 1rem;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform .15s ease,
        background .2s ease;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 6px;
}

.auth-btn:hover {
    background: var(--verde-dark);
}

.auth-btn:active {
    transform: scale(.98);
}

.auth-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.auth-message {
    display: none;

    padding: 14px 16px;

    border-radius: var(--radius-sm);

    font-size: .95rem;

    font-weight: 700;

    line-height: 1.5;
}

.auth-message.show {
    display: block;
}

.auth-message.success {
    background: rgba(22, 163, 74, .10);
    color: var(--sucesso);
    border: 1px solid rgba(22, 163, 74, .20);
}

.auth-message.error {
    background: rgba(220, 38, 38, .10);
    color: var(--erro);
    border: 1px solid rgba(220, 38, 38, .20);
}

.auth-links {
    margin-top: 26px;

    display: flex;
    flex-wrap: wrap;

    justify-content: center;

    gap: 16px;
}

.auth-links a {
    color: var(--verde);

    text-decoration: none;

    font-weight: 800;

    transition: color .2s ease;
}

.auth-links a:hover {
    color: var(--laranja);
}

.auth-divider {
    display: flex;
    align-items: center;

    gap: 12px;

    margin: 18px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';

    flex: 1;

    height: 1px;

    background: var(--borda);
}

.auth-divider span {
    color: var(--muted);

    font-size: .9rem;

    font-weight: 700;
}

.auth-social-btn {
    width: 100%;

    height: 52px;

    border: 1px solid var(--borda);

    border-radius: var(--radius-md);

    background: white;

    color: var(--texto);

    cursor: pointer;

    font-weight: 800;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.auth-social-btn:hover {
    border-color: var(--verde);

    box-shadow: var(--shadow-sm);
}

.password-rules {
    margin-top: 6px;

    font-size: .85rem;

    color: var(--muted);

    line-height: 1.5;
}

.auth-loading {
    opacity: .7;

    pointer-events: none;
}

.auth-loading .auth-btn {
    cursor: wait;
}

@media (max-width: 768px) {

    .auth-page {
        padding: 24px 12px 40px;
    }

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

    .auth-brand img {
        height: 60px;
    }

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

    .auth-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .form-group input {
        height: 50px;
    }

    .auth-btn {
        height: 52px;
    }
}

@media (max-width: 480px) {

    .auth-card {
        padding: 20px;
    }

    .auth-brand p {
        font-size: .95rem;
    }

    .auth-message {
        font-size: .9rem;
    }
}
/* Sprint 5.1 — data de nascimento prática no cadastro público */
.birth-select-grid {
    display: grid;
    grid-template-columns: .8fr 1.3fr 1fr;
    gap: 10px;
}

.birth-select-grid select,
.birth-select-grid input {
    width: 100%;
    min-height: 52px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: #ffffff;
    color: #12231a;
    padding: 0 13px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    outline: none;
}

.birth-select-grid select:focus,
.birth-select-grid input:focus {
    border-color: #216c39;
    box-shadow: 0 0 0 4px rgba(33,108,57,.10);
}

@media (max-width: 520px) {
    .birth-select-grid {
        grid-template-columns: 1fr;
    }
}
