:root {
    --bg: #020a08;
    --line: rgba(53, 255, 194, 0.18);
    --line-strong: rgba(75, 255, 210, 0.42);
    --neon: #6eff2c;
    --neon-2: #18ffb2;
    --text: #e8fff4;
    --muted: rgba(209, 255, 240, 0.82);
    --panel-border: rgba(24, 255, 178, 0.55);
    --input-border: rgba(29, 255, 191, 0.7);
    --danger: #ff6d90;
    --success: #aaffd5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    font-family: 'Rajdhani', Arial, sans-serif;
    background:
        radial-gradient(circle at 18% 30%, rgba(0, 255, 163, 0.10), transparent 0 18%),
        radial-gradient(circle at 78% 14%, rgba(63, 255, 215, 0.10), transparent 0 22%),
        radial-gradient(circle at 62% 60%, rgba(22, 255, 188, 0.06), transparent 0 20%),
        linear-gradient(180deg, #031311 0%, #010807 100%);
    color: var(--text);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(25,255,210,0.045) 0 1px, transparent 1px 56px),
        repeating-linear-gradient(90deg, rgba(25,255,210,0.03) 0 1px, transparent 1px 72px),
        linear-gradient(90deg, transparent 0%, rgba(0,255,213,0.05) 18%, transparent 32%, transparent 68%, rgba(0,255,213,0.05) 84%, transparent 100%),
        radial-gradient(circle at 50% 10%, rgba(47,255,220,0.07), transparent 36%);
    opacity: 0.9;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.22) 18%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.28) 100%),
        radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 8, 8, 0.16) 72%, rgba(0, 0, 0, 0.42) 100%),
        repeating-linear-gradient(180deg, transparent 0 120px, rgba(20,255,214,0.025) 120px 122px, transparent 122px 240px);
    pointer-events: none;
}

.screen-noise,
.screen-lines,
.login-scene {
    position: relative;
    z-index: 1;
}

.screen-noise,
.screen-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.screen-noise {
    opacity: 0.08;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(102,255,211,0.22) 0 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(89,255,168,0.18) 0 1px, transparent 1px),
        radial-gradient(circle at 60% 30%, rgba(96,255,239,0.12) 0 1px, transparent 1px);
    background-size: 190px 190px, 230px 230px, 260px 260px;
    mix-blend-mode: screen;
}

.screen-lines {
    background:
        repeating-linear-gradient(180deg, rgba(78,255,227,0.05) 0 1px, transparent 1px 4px),
        linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(17, 255, 199, 0.04) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.26;
}

.login-scene {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 2rem 1rem 1.2rem;
}

.brand-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    align-self: auto;
}

.logo-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
    margin-bottom: 0.25rem;
}

.brand-logo {
    width: min(152px, 33vw);
    max-width: 100%;
    height: auto;
    filter:
        drop-shadow(0 0 6px rgba(117, 255, 40, 0.2))
        drop-shadow(0 0 18px rgba(9, 255, 176, 0.14))
        drop-shadow(0 0 34px rgba(17, 255, 195, 0.10));
    user-select: none;
    -webkit-user-drag: none;
}

.whatsapp-badge {
    position: fixed;
    right: 20px;
    bottom: 20px;
    transform: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    background: #25D366;
    padding: 10px 12px;
    border-radius: 50px;

    color: #fff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;

    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 9999;

    transition: transform 0.2s ease;
}

.whatsapp-badge:hover {
    transform: scale(1.1);
}

.wa-icon {
    width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.wa-icon svg {
    width: 1rem;
    height: 1rem;
    fill: white;
}

.panel-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-right: 0;
    width: 100%;
}

.headline-wrap {
    width: 100%;
    max-width: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    transform: none;
}

.headline-line {
    flex: 1;
    max-width: 70px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(154,255,0,0.45), transparent);
    box-shadow: 0 0 10px rgba(154,255,0,0.10);
}

.headline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 700;
    color: #caff44;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: none;
    text-shadow:
        0 0 6px rgba(201,255,68,0.24),
        0 0 14px rgba(160,255,36,0.10);
}

.access-panel {
    width: 100%;
    max-width: 460px;
    min-height: auto;
    position: relative;
    padding: 1.4rem 1.2rem 1.25rem;
    border: 1px solid rgba(44, 255, 204, 0.30);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(2,14,13,0.74) 0%, rgba(0,8,8,0.84) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(0, 255, 183, 0.05),
        0 0 24px rgba(19,255,180,0.06);
    overflow: hidden;
}

.access-panel::before,
.access-panel::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(29,255,191,0.12);
    pointer-events: none;
}

.access-panel::after {
    inset: auto auto 10px 10px;
    width: 20px;
    height: 20px;
    border-top: none;
    border-right: none;
    opacity: 0.28;
}

.panel-glow {
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 72%;
    height: 28px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(65,255,220,0.18) 0%, rgba(65,255,220,0.05) 42%, transparent 72%);
    filter: blur(10px);
    pointer-events: none;
}

.alert {
    display: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    font-size: 0.98rem;
    line-height: 1.2;
    border: 1px solid transparent;
    backdrop-filter: blur(8px);
}

.alert.show {
    display: block;
}

.alert.error {
    color: #ffb4c4;
    background: rgba(255, 65, 105, 0.08);
    border-color: rgba(255, 65, 105, 0.3);
    box-shadow: 0 0 20px rgba(255, 65, 105, 0.08);
}

.alert.success {
    color: var(--success);
    background: rgba(91, 255, 163, 0.08);
    border-color: rgba(91, 255, 163, 0.26);
    box-shadow: 0 0 20px rgba(91, 255, 163, 0.08);
}

.login-form {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding-top: 0.2rem;
}

.field-shell {
    width: 100%;
    max-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
    height: 58px;
    padding: 0 1rem;
    background: linear-gradient(90deg, rgba(0,12,10,0.82), rgba(0,15,14,0.72));
    border: 1px solid rgba(22, 255, 188, 0.52);
    border-radius: 8px;
    box-shadow:
        inset 0 0 16px rgba(0,0,0,0.42),
        0 0 0 1px rgba(85,255,218,0.08),
        0 0 16px rgba(22,255,188,0.08);
}

.field-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(90deg, rgba(17,255,185,0.24), rgba(138,255,54,0.14), rgba(17,255,185,0.24));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.45;
    pointer-events: none;
}

.field-shell:focus-within {
    border-color: rgba(87, 255, 199, 0.85);
    box-shadow:
        inset 0 0 18px rgba(0,0,0,0.42),
        0 0 0 1px rgba(85,255,218,0.14),
        0 0 18px rgba(22,255,188,0.14),
        0 0 34px rgba(22,255,188,0.08);
}

.field-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #79ff73;
    filter: drop-shadow(0 0 6px rgba(121,255,115,0.28));
    flex: 0 0 auto;
}

.field-icon svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: currentColor;
}

.field-input {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color: #dffef7;
    font-family: 'Rajdhani', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding-left: 0.7rem;
    letter-spacing: 0.02em;
    outline: none;
}

.field-input::placeholder {
    color: rgba(214, 255, 247, 0.68);
}

.enter-btn {
    width: 100%;
    max-width: 400px;
    min-height: 64px;
    position: relative;
    isolation: isolate;
    border: 0;
    cursor: pointer;
    background:
        linear-gradient(180deg, rgba(139,255,55,0.12) 0%, rgba(62,255,189,0.05) 100%),
        linear-gradient(90deg, rgba(7,48,25,0.96) 0%, rgba(18,90,45,0.92) 50%, rgba(94,255,81,0.94) 100%);
    color: #f3ffee;
    clip-path: polygon(5% 0, 95% 0, 100% 26%, 100% 100%, 7% 100%, 0 78%, 0 18%);
    box-shadow:
        inset 0 0 0 2px rgba(157,255,128,0.45),
        inset 0 0 0 4px rgba(46, 255, 190, 0.05),
        0 0 12px rgba(117,255,54,0.18),
        0 0 24px rgba(64,255,180,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}

.enter-btn::before {
    content: "";
    position: absolute;
    inset: 4px;
    clip-path: polygon(5% 0, 95% 0, 100% 26%, 100% 100%, 7% 100%, 0 78%, 0 18%);
    border: 1px solid rgba(168,255,155,0.58);
    opacity: 0.56;
    pointer-events: none;
}

.enter-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.10), transparent 42%, rgba(0,0,0,0.10));
    mix-blend-mode: screen;
    pointer-events: none;
}

.enter-btn-glow {
    position: absolute;
    inset: -8% -2%;
    background: radial-gradient(circle at 50% 52%, rgba(127,255,86,0.42) 0%, rgba(76,255,118,0.14) 38%, rgba(9, 255, 177, 0.08) 56%, transparent 74%);
    filter: blur(14px);
    z-index: -1;
    animation: pulseGlow 2.3s ease-in-out infinite;
}

.enter-btn-sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(112deg, transparent 20%, rgba(255,255,255,0.18) 38%, rgba(255,255,255,0.04) 48%, transparent 58%);
    transform: translateX(-125%);
    animation: btnSheen 3.4s ease-in-out infinite;
    pointer-events: none;
}

.enter-label,
.enter-arrows,
.spinner {
    position: relative;
    z-index: 1;
}

.enter-label {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    transform: skewX(-8deg);
    text-shadow: 0 0 8px rgba(255,255,255,0.18);
}

.enter-arrows {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 900;
    transform: translateY(-1px);
    text-shadow: 0 0 8px rgba(233,255,210,0.18);
}

.enter-btn:hover {
    transform: translateY(-1px) scale(1.006);
    filter: brightness(1.04);
    box-shadow:
        inset 0 0 0 2px rgba(173,255,140,0.54),
        inset 0 0 0 5px rgba(46, 255, 190, 0.06),
        0 0 16px rgba(117,255,54,0.26),
        0 0 36px rgba(117,255,54,0.18),
        0 0 70px rgba(64,255,180,0.12);
}

.enter-btn:active {
    transform: translateY(1px) scale(0.996);
}

.enter-btn.loading .enter-label,
.enter-btn.loading .enter-arrows {
    opacity: 0.26;
}

.enter-btn.loading .spinner {
    display: inline-block;
}

.enter-btn:disabled {
    cursor: wait;
}

.spinner {
    display: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.24);
    border-top-color: #fcfffa;
    animation: spin 0.85s linear infinite;
}

.footer-copy {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    margin-top: 0;
    padding-right: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.82rem;
    font-style: italic;
    font-weight: 700;
    color: #d5ff64;
    letter-spacing: 0.05em;
    text-shadow: 0 0 7px rgba(175,255,58,0.15);
    text-align: center;
    z-index: 5;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.85;
        transform: scale(0.985);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes btnSheen {
    0%, 18% { transform: translateX(-125%); }
    34% { transform: translateX(130%); }
    100% { transform: translateX(130%); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
    body {
        overflow-y: auto;
    }

    .login-scene {
        padding: 1.2rem 0.9rem 4.2rem;
        gap: 1rem;
    }

    .brand-logo {
        width: 118px;
    }

    .whatsapp-badge {
        font-size: 0.82rem;
        gap: 0.45rem;
        bottom: 42px;
    }

    .wa-icon {
        width: 1.55rem;
        height: 1.55rem;
    }

    .wa-icon svg {
        width: 0.8rem;
        height: 0.8rem;
    }

    .headline-wrap {
        max-width: 100%;
        gap: 0.45rem;
        margin-bottom: 0.8rem;
    }

    .headline {
        font-size: 0.92rem;
        text-align: center;
        white-space: normal;
    }

    .headline-line {
        max-width: 40px;
    }

    .access-panel {
        max-width: 100%;
        padding: 1rem 0.9rem 1rem;
    }

    .field-shell {
        height: 54px;
    }

    .field-input {
        font-size: 1rem;
    }

    .enter-btn {
        min-height: 58px;
    }

    .enter-label {
        font-size: 1.25rem;
    }

    .enter-arrows {
        font-size: 1.45rem;
    }

    .footer-copy {
        font-size: 0.72rem;
        bottom: 12px;
    }
}