/*
 * Firewall Center Anyware — Login (glass v3)
 * Identidade: card central translúcido (glassmorphism), orbes de gradiente
 * azul/verde da marca ao fundo, cantos bem arredondados — deliberadamente
 * diferente do visual editorial/técnico anterior (split-screen, cantos
 * retos, tipografia mono estilo NOC).
 */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

:root {
    color-scheme: dark;

    --bg: #05060a;
    --card-bg: rgba(19, 20, 26, 0.62);
    --card-border: rgba(255, 255, 255, 0.09);
    --field-bg: rgba(255, 255, 255, 0.04);
    --field-border: rgba(255, 255, 255, 0.10);
    --text: #f5f5f4;
    --muted: #9a9aa2;
    --muted-2: #6c6c76;

    --accent: #00b6ec;
    --accent-bright: #29d3ff;
    --accent-green: #34c853;
    --danger: #ff6b57;

    --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font);
    background: var(--bg);
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

/* ===== Fundo: orbes de gradiente + grade fina ===== */
.login-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.login-orb-blue {
    width: 620px;
    height: 620px;
    top: -220px;
    left: -160px;
    background: radial-gradient(circle, rgba(0, 182, 236, 0.34), transparent 70%);
    animation: orb-float-a 16s ease-in-out infinite;
}

.login-orb-green {
    width: 560px;
    height: 560px;
    bottom: -240px;
    right: -180px;
    background: radial-gradient(circle, rgba(52, 200, 83, 0.26), transparent 70%);
    animation: orb-float-b 18s ease-in-out infinite;
}

@keyframes orb-float-a {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 24px); }
}

@keyframes orb-float-b {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-26px, -20px); }
}

.login-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 72%);
    mask-image: radial-gradient(circle at 50% 30%, black, transparent 72%);
}

@media (prefers-reduced-motion: reduce) {
    .login-orb-blue,
    .login-orb-green {
        animation: none;
    }
}

/* ===== Palco central ===== */
.login-stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: 32px 20px;
}

.login-card {
    width: min(420px, 100%);
    padding: 44px 38px 34px;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.44),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.login-logo {
    display: block;
    width: min(220px, 80%);
    height: auto;
    object-fit: contain;
    margin: 0 auto 22px;
    filter: drop-shadow(0 0 24px rgba(0, 182, 236, 0.26));
}

.login-card h1 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}

.login-subtitle {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.login-form {
    display: grid;
    gap: 16px;
    text-align: left;
}

.login-field {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.login-field input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    color: var(--text);
    font-size: 14px;
    background: var(--field-bg);
    border: 1px solid var(--field-border);
    border-radius: 12px;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.login-field input::placeholder {
    color: var(--muted-2);
}

.login-field input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 182, 236, 0.18);
}

.login-password-wrap {
    position: relative;
}

.login-password-wrap input {
    padding-right: 84px;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    min-height: 30px;
    padding: 0 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--field-border);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.login-password-toggle:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

.login-submit {
    width: 100%;
    height: 48px;
    margin-top: 6px;
    color: #ffffff;
    background: linear-gradient(95deg, var(--accent) 0%, var(--accent-green) 130%);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 182, 236, 0.28);
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.login-submit:hover {
    filter: brightness(1.08);
    box-shadow: 0 12px 30px rgba(0, 182, 236, 0.38);
}

.login-submit:active {
    transform: scale(0.985);
}

.login-submit:disabled {
    opacity: 0.55;
    cursor: wait;
    box-shadow: none;
}

.login-error {
    display: none;
    margin-top: -2px;
    padding: 11px 13px;
    color: #ffd4cb;
    background: rgba(255, 107, 87, 0.10);
    border: 1px solid rgba(255, 107, 87, 0.28);
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: left;
}

.login-error.show {
    display: block;
}

.login-footer {
    margin: 26px 0 0;
    color: var(--muted-2);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.login-badges {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.login-badges span {
    padding: 6px 14px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

@media (max-width: 480px) {
    .login-card {
        padding: 36px 24px 28px;
        border-radius: 18px;
    }

    .login-badges {
        display: none;
    }
}
