/* ============================================================================
   France Fogo & Brasa • Login
   ============================================================================ */

:root {
    --bg-1: #050505;
    --bg-2: #111111;

    --panel: rgba(18, 18, 18, 0.90);
    --panel-strong: rgba(12, 12, 12, 0.96);

    --text: #f4f4f4;
    --muted: #b9b9b9;

    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);

    --accent: #d7dde6;
    --accent-soft: rgba(215, 221, 230, 0.14);

    --input-bg: rgba(255, 255, 255, 0.035);
    --input-bg-focus: rgba(255, 255, 255, 0.055);

    --shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 30%),
        linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.16;
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 260px;
    height: 260px;
    background: #ffffff;
    top: -50px;
    left: -50px;
}

body::after {
    width: 320px;
    height: 320px;
    background: #8f8f8f;
    right: -80px;
    bottom: -80px;
}

.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 34px 18px 40px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.layout {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.brand-top::before {
    content: "";
    position: absolute;
    width: min(70vw, 420px);
    height: min(70vw, 420px);
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.02) 45%,
            transparent 70%);
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

.brand-top img {
    position: relative;
    z-index: 1;
    width: clamp(220px, 32vw, 430px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
    transform: translateY(2px);
    filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.08));
}

.panel {
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.topbar {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.topbar h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--text);
}

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

.content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.field label {
    font-size: 12px;
    font-weight: 700;
    color: #e7e7e7;
    letter-spacing: .04em;
}

.input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, var(--input-bg) 0%, rgba(255, 255, 255, 0.015) 100%);
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        transform .2s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 6px 18px rgba(0, 0, 0, 0.12);
}

.input::placeholder {
    color: #989898;
}

.input:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.input:focus {
    border-color: rgba(215, 221, 230, 0.35);
    background: linear-gradient(180deg, var(--input-bg-focus) 0%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow:
        0 0 0 3px rgba(215, 221, 230, 0.10),
        0 12px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.pass-wrap {
    position: relative;
}

.pass-wrap .input {
    padding-right: 45px;
}

.btn {
    min-height: 52px;
    padding: 13px 18px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease,
        background .2s ease;
}

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

.btn-primary {
    background: linear-gradient(180deg, #f1f1f1, #cfcfcf);
    color: #101010;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-primary:hover {
    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.actions .btn {
    flex: 1;
}

.hint {
    font-size: 12px;
    color: #9e9e9e;
    white-space: nowrap;
}

.foot {
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #9e9e9e;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.18;
    }

    50% {
        transform: scale(1.06);
        opacity: 0.28;
    }
}

@media (max-width: 640px) {
    .wrap {
        padding: 22px 14px 28px;
    }

    .brand-top {
        margin-bottom: 2px;
    }

    .brand-top img {
        width: clamp(220px, 58vw, 320px);
    }

    .panel {
        max-width: 100%;
        border-radius: 18px;
    }

    .topbar,
    .content {
        padding: 18px;
    }

    .actions,
    .foot {
        flex-direction: column;
        align-items: stretch;
    }

    .hint,
    .foot span:last-child {
        text-align: center;
    }
}

/* ============================================================================
   Refinamento Visual
   ============================================================================ */

body {
    background:
        radial-gradient(circle at top left, rgba(255, 122, 26, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 122, 26, 0.1), transparent 24%),
        linear-gradient(135deg, #060606 0%, #111111 55%, #1a120d 100%);
}

.wrap {
    max-width: 1180px;
    padding: 24px 18px;
}

.layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 440px);
    gap: 26px;
    align-items: stretch;
}

.hero {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at top, rgba(255, 122, 26, 0.16), transparent 52%);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}

.hero-badge,
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 122, 26, 0.18);
    background: rgba(255, 122, 26, 0.12);
    color: #ffd9c2;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-top {
    justify-content: flex-start;
    margin-bottom: 0;
}

.brand-top::before {
    width: 170px;
    height: 170px;
    background: radial-gradient(circle, rgba(255, 122, 26, 0.18), transparent 70%);
    animation: none;
}

.brand-top img {
    width: clamp(110px, 14vw, 170px);
    transform: none;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.28));
}

.hero-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff7f2;
}

.hero-copy p {
    margin: 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
}

.hero-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-list span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f1e8e1;
    font-size: 0.92rem;
}

.panel {
    max-width: none;
    border-radius: 28px;
    background: rgba(14, 14, 14, 0.92);
}

.topbar {
    padding: 22px 24px 18px;
}

.topbar h2 {
    font-size: 1.32rem;
}

.content {
    gap: 18px;
}

.field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.toggle-pass {
    border: 0;
    background: transparent;
    color: #ffb37d;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.input {
    min-height: 54px;
    border-radius: 16px;
    font-size: 0.95rem;
}

.input:focus {
    border-color: rgba(255, 122, 26, 0.42);
    box-shadow:
        0 0 0 4px rgba(255, 122, 26, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.22);
}

.btn {
    min-height: 54px;
    border-radius: 16px;
    font-size: 0.96rem;
    font-weight: 800;
}

.btn-primary {
    background: linear-gradient(180deg, #ff7a1a 0%, #eb6c11 100%);
    color: #fff;
    box-shadow: 0 16px 30px rgba(255, 122, 26, 0.24);
}

.login-mensagem {
    display: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.login-mensagem.erro {
    display: block;
    background: rgba(127, 29, 29, 0.22);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.28);
}

.login-mensagem.sucesso {
    display: block;
    background: rgba(20, 83, 45, 0.24);
    color: #bbf7d0;
    border: 1px solid rgba(74, 222, 128, 0.24);
}

.foot {
    margin-top: 2px;
    padding-top: 14px;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wrap {
        padding: 14px;
    }

    .hero,
    .panel {
        border-radius: 22px;
    }

    .hero {
        padding: 20px;
        gap: 18px;
    }

    .brand-top {
        justify-content: center;
    }

    .brand-top::before {
        width: 132px;
        height: 132px;
    }

    .brand-top img {
        width: 104px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy p {
        max-width: none;
    }

    .hero-list {
        justify-content: center;
    }

    .topbar,
    .content {
        padding: 18px;
    }

    .topbar {
        flex-direction: column;
    }

    .foot {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
