:root {
    /* ===== PREMIUM + CONVERSÃO (PRETO + VERMELHO) ===== */
    --bg: #0B0B0B;
    --panel: #121212;
    --panel2: #161616;

    --input: #1A1A1A;

    --border: rgba(255, 255, 255, .10);
    --border2: rgba(255, 255, 255, .14);

    --text: #FFFFFF;
    --muted: rgba(255, 255, 255, .72);
    --muted2: rgba(255, 255, 255, .55);

    --red: #C1121F;
    --red-hover: #E10613;

    /* Efeitos premium (discretos) */
    --shadow: 0 22px 70px rgba(0, 0, 0, .65);
    --shadow2: 0 10px 30px rgba(0, 0, 0, .35);
    --glow: 0 12px 28px rgba(193, 18, 31, .22);
    --focus: 0 0 0 3px rgba(193, 18, 31, .35);

    --radius: 18px;
    --radius2: 14px;
    --tap: 44px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background:
        radial-gradient(900px 520px at 50% -10%, rgba(193, 18, 31, .14), transparent 55%),
        radial-gradient(700px 520px at 80% 25%, rgba(193, 18, 31, .08), transparent 60%),
        linear-gradient(180deg, #090909, var(--bg));
}

a {
    color: inherit;
    text-decoration: none;
}

.link {
    color: var(--text);
    font-weight: 800;
    opacity: .92;
}

.link:hover {
    opacity: 1;
    text-decoration: underline;
}

.muted {
    color: var(--muted);
}

/* ====== AUTH LAYOUT ====== */
.auth-body {
    min-height: 100%;
    display: flex;
}

.auth-wrap {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    gap: 14px;
}

.auth-card {
    width: min(520px, 100%);
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 20px;
    overflow: hidden;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

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

.brand-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    letter-spacing: .5px;
    background:
        radial-gradient(18px 18px at 30% 30%, rgba(255, 255, 255, .20), transparent 65%),
        linear-gradient(180deg, rgba(193, 18, 31, 1), rgba(128, 10, 18, 1));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 40px rgba(193, 18, 31, .18);
}

.brand-title {
    font-size: 20px;
    font-weight: 950;
    line-height: 1.1;
}

.brand-sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 750;
    letter-spacing: .2px;
}

input {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(10, 10, 14, .45);
    color: var(--text);
    outline: none;
    font-size: 14px;
}

input::placeholder {
    color: rgba(255, 255, 255, .42);
}

input:focus {
    border-color: rgba(193, 18, 31, .55);
    box-shadow: var(--focus);
}

.field-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.field-inline input {
    flex: 1;
}

.icon-btn {
    flex: 0 0 auto;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    cursor: pointer;
    font-weight: 950;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, .10);
}

.hint {
    font-size: 12px;
    color: var(--muted2);
    margin-top: -2px;
}

.btn-primary {
    margin-top: 6px;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 950;
    letter-spacing: .3px;
    color: #fff;
    background: linear-gradient(180deg, var(--red), #8f0d16);
    box-shadow: var(--glow);
    transition: .15s ease;
}

.btn-primary:hover {
    background: linear-gradient(180deg, var(--red-hover), #b0121d);
    transform: translateY(-1px);
}

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

.btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
    filter: none;
    transform: none;
}

.auth-links {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.alert {
    display: none;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-size: 13px;
    white-space: pre-wrap;
}

.alert-error {
    border-color: rgba(255, 59, 59, .35);
    background: rgba(255, 59, 59, .10);
}

.alert-ok {
    border-color: rgba(47, 229, 124, .35);
    background: rgba(47, 229, 124, .10);
}

.auth-footer {
    font-size: 12px;
    color: var(--muted2);
    opacity: .9;
}

/* ====== OUTROS COMPONENTES DO APP ====== */
.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 18px;
}

.panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;
    box-shadow: var(--shadow2);
}

.card {
    padding: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    margin: 10px 0;
}

.row {
    display: flex;
    gap: 10px;
}

.row>* {
    flex: 1;
}

.foto {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 10px;
}

/* ====== CHECK (termos) ====== */
.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(10, 10, 14, .35);
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
}

.check input {
    width: auto;
    margin-top: 3px;
}

.check a {
    text-decoration: underline;
    color: var(--red-hover);
}

.check a:hover {
    color: #FF1E2D;
}

/* ====== RESPONSIVO ====== */
@media (max-width: 420px) {
    .auth-card {
        padding: 16px;
        border-radius: 18px;
    }

    .brand-title {
        font-size: 18px;
    }

    .brand-badge {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    input {
        border-radius: 12px;
    }

    .btn-primary {
        border-radius: 14px;
    }

    .icon-btn {
        border-radius: 12px;
    }
}