
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #050705;
    color: #e8f0e6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* м'яке неонове світіння у фоні — у кольорі логотипа */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}
body::before {
    width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(132,232,0,.20), transparent 68%);
    top: -220px; left: -160px;
}
body::after {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(132,232,0,.13), transparent 70%);
    bottom: -300px; right: -220px;
}

/* ледь помітна сітка, щоб фон не був «плоским» */
.grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(132,232,0,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(132,232,0,.045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
    pointer-events: none;
}

.auth-wrap { position: relative; z-index: 2; width: 100%; max-width: 400px; text-align: center; }

.logo-badge {
    width: 116px; height: 116px;
    margin: 0 auto 22px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(132,232,0,.45);
    box-shadow: 0 0 0 6px rgba(132,232,0,.06), 0 18px 50px rgba(132,232,0,.22);
    animation: rise .6s ease-out both;
}
.logo-badge img { width: 100%; height: 100%; display: block; object-fit: cover; }

.greet { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #7f9478;
    margin: 0 0 6px; animation: rise .6s .05s ease-out both; }
h1 { font-size: 25px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.01em;
    animation: rise .6s .1s ease-out both; }
h1 .accent { color: #84e800; text-shadow: 0 0 22px rgba(132,232,0,.55); }
.sub { color: #6f8269; font-size: 13.5px; margin: 0 0 26px; animation: rise .6s .15s ease-out both; }

.card {
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    padding: 26px 24px 24px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
    text-align: left;
    animation: rise .6s .2s ease-out both;
}
label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .05em;
    text-transform: uppercase; color: #8a9c84; margin-bottom: 7px; }
input {
    width: 100%; padding: 13px 15px; margin-bottom: 16px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    color: #eaf3e8; font-size: 15px; font-family: inherit;
    transition: border-color .16s, box-shadow .16s, background .16s;
}
input::placeholder { color: #55654f; }
input:focus {
    outline: none;
    border-color: #84e800;
    background: rgba(0,0,0,.5);
    box-shadow: 0 0 0 3px rgba(132,232,0,.16);
}
button {
    width: 100%; padding: 14px; margin-top: 4px;
    background: linear-gradient(135deg, #84e800, #5fb800);
    color: #071000; border: none; border-radius: 12px;
    font-size: 15.5px; font-weight: 800; font-family: inherit; cursor: pointer;
    letter-spacing: .01em;
    box-shadow: 0 8px 26px rgba(132,232,0,.32);
    transition: transform .13s, box-shadow .13s, filter .13s;
}
button:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(132,232,0,.45); filter: brightness(1.06); }
button:active { transform: translateY(0); }

.error {
    background: rgba(220,38,38,.14);
    border: 1px solid rgba(248,113,113,.4);
    color: #fca5a5;
    border-radius: 11px; padding: 11px 14px; margin: 0 0 16px;
    font-size: 13.5px; text-align: center;
    animation: shake .3s;
}
.locked { text-align: center; padding: 8px 0 4px; }
.locked-ico { font-size: 34px; margin-bottom: 8px; }
.locked-t { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: #fca5a5; }
.locked-s { font-size: 13.5px; color: #8a9c84; margin: 0; line-height: 1.6; }
.locked-s strong { color: #84e800; font-size: 17px; font-variant-numeric: tabular-nums; }
.foot { margin-top: 20px; font-size: 12px; color: #4f5f4a; letter-spacing: .04em;
    animation: rise .6s .28s ease-out both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
@media (max-width: 480px) {
    .logo-badge { width: 94px; height: 94px; }
    h1 { font-size: 22px; }
    .card { padding: 22px 18px 20px; }
}

.backlink { display:block; text-align:center; margin-top:16px; color:#7f9478;
    font-size:13px; text-decoration:none; }
.backlink:hover { color:#84e800; }
.okbox { text-align:center; padding:6px 0 2px; }
.okbox-ico { font-size:36px; margin-bottom:10px; }
.okbox-t { font-size:16px; font-weight:700; margin:0 0 8px; color:#84e800; }
.okbox-s { font-size:13.5px; color:#8a9c84; margin:0; line-height:1.6; }

.okmsg { background: rgba(132,232,0,.12); border: 1px solid rgba(132,232,0,.4);
    color: #a3f000; border-radius: 11px; padding: 11px 14px; margin: 0 0 16px;
    font-size: 13.5px; text-align: center; }
