* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg1: #0f172a;
    --bg2: #111827;
    --card: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --muted: #9ca3af;
    --accent: #00c2ff;
    --accent2: #7c3aed;
}

body {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg1), var(--bg2));
    overflow: auto;
    overflow-x: hidden;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bg-glow-1,
.bg-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.bg-glow-1 {
    width: 400px;
    height: 400px;
    background: #00c2ff;
    top: -100px;
    left: -100px;
}

.bg-glow-2 {
    width: 450px;
    height: 450px;
    background: #7c3aed;
    bottom: -150px;
    right: -120px;
}

.login-wrapper {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 40px;
    padding: 40px;
    position: relative;
    z-index: 2;
}

.left-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand {
    margin-bottom: 30px;
}

.brand h1 {
    font-size: 90px;
    font-weight: 800;
    letter-spacing: 4px;
}

.brand h1 span {
    color: var(--accent);
}

.brand p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 18px;
}

.headline {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 650px;
}

.subtext {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 620px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 40px;
    max-width: 650px;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    backdrop-filter: blur(12px);
    transition: 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.login-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 40px;
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-card h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.login-card .desc {
    color: var(--muted);
    margin-bottom: 35px;
    line-height: 1.7;
}

.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #d1d5db;
}

.input-group input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 194, 255, 0.15);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 14px;
    color: var(--muted);
}

.options a {
    color: var(--accent);
    text-decoration: none;
}

.login-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 194, 255, 0.25);
}

.login-btn:hover {
    transform: translateY(-3px);
}

.footer-note {
    margin-top: 25px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.status {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d1d5db;
    font-size: 14px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 1.5s infinite;
}

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

    50% {
        transform: scale(1.6);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 980px) {
    body {
        overflow-y: auto;
    }

    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .left-panel {
        order: 2;
    }

    .login-card {
        order: 1;
    }

    .brand h1 {
        font-size: 62px;
    }

    .headline {
        font-size: 40px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.flash-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.flash {
    margin: 10px;
    padding: 15px;
    border-radius: 5px;
    font-size: 1rem;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 200px;
    max-width: 500px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.info {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    color: inherit;
}