﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Aurora Background ── */
body {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: #05050f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

    body::before, body::after {
        content: '';
        position: fixed;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.35;
        animation: aurora 12s ease-in-out infinite alternate;
        pointer-events: none;
        z-index: 0;
    }

    body::before {
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, #6c00ff, #3b00cc);
        top: -150px;
        left: -150px;
    }

    body::after {
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, #00c9ff, #006dff);
        bottom: -150px;
        right: -100px;
        animation-delay: -6s;
    }

@keyframes aurora {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.15) translate(40px, 30px);
    }

    100% {
        transform: scale(1) translate(-20px, 10px);
    }
}

/* ── Ticker Banner ── */
.ticker-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.45rem 0;
    overflow: hidden;
    z-index: 10;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

@keyframes ticker {
    0% {
        transform: translateX(100vw);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ── Card ── */
.login-card {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 420px;
    margin: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    padding: 2.5rem 2.25rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset, 0 24px 64px rgba(0,0,0,0.5), 0 0 80px rgba(108,0,255,0.08);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Logo / Brand ── */
.brand-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #6c00ff, #00c9ff);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(108,0,255,0.4);
}

.login-title {
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    margin-bottom: 1.75rem;
}

/* ── Floating Label Inputs ── */
.field-wrap {
    position: relative;
    margin-bottom: 1.25rem;
}

    .field-wrap input {
        width: 100%;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 0.75rem;
        color: #fff;
        font-size: 0.95rem;
        padding: 1rem 1rem 0.4rem 1rem;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
        caret-color: #00c9ff;
    }

        .field-wrap input:focus {
            border-color: rgba(108,0,255,0.7);
            background: rgba(255,255,255,0.09);
            box-shadow: 0 0 0 3px rgba(108,0,255,0.18);
        }

        .field-wrap input:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

    .field-wrap label {
        position: absolute;
        top: 50%;
        left: 1rem;
        transform: translateY(-50%);
        color: rgba(255,255,255,0.4);
        font-size: 0.9rem;
        pointer-events: none;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .field-wrap input:focus ~ label,
    .field-wrap input:not(:placeholder-shown) ~ label {
        top: 0.55rem;
        font-size: 0.7rem;
        color: #00c9ff;
        letter-spacing: 0.04em;
    }

/* Password toggle */
.pwd-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s;
}

    .pwd-toggle:hover {
        color: #00c9ff;
    }

/* ── Status Badges ── */
.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.75rem;
    padding: 0.65rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.83rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #ff6b7a;
}

.badge-warning {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffd966;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.badge-danger .badge-dot {
    background: #ff6b7a;
}

.badge-warning .badge-dot {
    background: #ffd966;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

/* ── Login Button ── */
.btn-login {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    margin-top: 0.25rem;
}

    .btn-login.active-btn {
        background: linear-gradient(135deg, #6c00ff, #00c9ff);
        color: #fff;
        box-shadow: 0 8px 24px rgba(108,0,255,0.35);
    }

        .btn-login.active-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 12px 32px rgba(108,0,255,0.5);
        }

        .btn-login.active-btn:active:not(:disabled) {
            transform: translateY(0);
        }

    .btn-login.locked {
        background: rgba(255,255,255,0.07);
        border: 1px solid rgba(255,255,255,0.1);
        color: rgba(255,255,255,0.35);
        cursor: not-allowed;
    }

    .btn-login:disabled {
        pointer-events: none;
    }

    /* Button shimmer on hover */
    .btn-login.active-btn::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
        transition: left 0.4s ease;
    }

    .btn-login.active-btn:hover::after {
        left: 150%;
    }

/* ── Status Message ── */
.status-ticker {
    margin-top: 1.25rem;
    text-align: center;
    min-height: 1.2rem;
    font-size: 0.78rem;
    color: rgba(255,220,100,0.75);
    letter-spacing: 0.03em;
    overflow: hidden;
}

/* ── Server status indicator (top-right of card) ── */
.server-status {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
}

    .server-status .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
    }

.dot-green {
    background: #00e676;
    box-shadow: 0 0 6px #00e676;
    animation: pulse-dot 2s infinite;
}

.dot-red {
    background: #ff3d57;
    box-shadow: 0 0 6px #ff3d57;
}

/* ── Responsive ── */
@@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        margin: 0.75rem;
    }

    .login-title {
        font-size: 1.3rem;
    }
}
