:root {
    --bg: #0b0b0f;
    --panel: #12121a;
    --panel2: #151522;
    --border: rgba(255, 255, 255, .10);
    --text: #f4f4f6;
    --muted: rgba(255, 255, 255, .70);
    --muted2: rgba(255, 255, 255, .55);
    --accent: #ff2a6d;
    --accent2: #ffb100;
    --danger: #ff3b3b;
    --ok: #2fe57c;
    --shadow: 0 18px 55px rgba(0, 0, 0, .55);
}

* {
    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(1200px 800px at 50% 0%, rgba(255, 42, 109, .14), transparent 60%),
        radial-gradient(900px 700px at 80% 20%, rgba(255, 177, 0, .10), transparent 55%),
        radial-gradient(900px 700px at 20% 40%, rgba(120, 90, 255, .08), transparent 55%),
        var(--bg);
}

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

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

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

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

/* ====== NAV (se você usar nas outras telas) ====== */
.topnav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(10, 10, 14, .72);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.topnav a {
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 800;
    opacity: .85;
}

.topnav a:hover {
    background: rgba(255, 255, 255, .06);
    opacity: 1;
}

.topnav a.active {
    background: rgba(255, 42, 109, .14);
    border: 1px solid rgba(255, 42, 109, .25);
    opacity: 1;
}

/* ====== 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, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
    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: 900;
    letter-spacing: .5px;
    background:
        radial-gradient(18px 18px at 30% 30%, rgba(255, 255, 255, .25), transparent 65%),
        linear-gradient(135deg, rgba(255, 42, 109, .95), rgba(255, 177, 0, .85));
    box-shadow: 0 14px 30px rgba(255, 42, 109, .18);
}

.brand-title {
    font-size: 20px;
    font-weight: 900;
    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: 13px;
    color: var(--muted);
    font-weight: 700;
}

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

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

input:focus {
    border-color: rgba(255, 42, 109, .45);
    box-shadow: 0 0 0 4px rgba(255, 42, 109, .12);
}

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

.field-inline input {
    flex: 1;
}

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

.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%;
    border: 0;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 900;
    color: #0b0b0f;
    background: linear-gradient(135deg, rgba(255, 42, 109, 1), rgba(255, 177, 0, 1));
    box-shadow: 0 14px 40px rgba(255, 42, 109, .18);
}

.btn-primary:hover {
    filter: brightness(1.05);
}

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

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

.alert {
    display: none;
    margin-top: 4px;
    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 (caso você use) ====== */
.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 18px;
}

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

.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;
}

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

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

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

    input {
        border-radius: 12px;
    }

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

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

.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, .45);
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
}

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

.check a {
    text-decoration: underline;
}