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

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    min-height: 100vh;
    background: #0f1420;
    color: #e6edf3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(900px 500px at 20% 10%, rgba(56,139,253,0.25), transparent 60%),
        radial-gradient(700px 500px at 85% 90%, rgba(139,92,246,0.22), transparent 60%),
        linear-gradient(180deg, #0b0f18 0%, #0f1420 100%);
    z-index: -1;
}

.login-wrap {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: rgba(22, 27, 38, 0.85);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 36px 30px 24px;
    backdrop-filter: blur(14px);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.brand { text-align: center; margin-bottom: 28px; }

.logo {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #388bfd, #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(56,139,253,0.45);
}

h1 { font-size: 22px; font-weight: 600; letter-spacing: 0.2px; }
.subtitle { font-size: 13px; color: #8b96a5; margin-top: 6px; }

form label { display: block; margin-bottom: 16px; }
form label span {
    display: block;
    font-size: 12px;
    color: #9aa4b2;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    background: #0d121b;
    border: 1px solid #232b3a;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 14px;
    transition: border 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: #388bfd;
    box-shadow: 0 0 0 3px rgba(56,139,253,0.18);
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 13px;
}

.checkbox { display: flex; align-items: center; gap: 8px; color: #9aa4b2; cursor: pointer; }
.checkbox input { accent-color: #388bfd; }

.link { color: #58a6ff; text-decoration: none; }
.link:hover { text-decoration: underline; }

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #388bfd, #2563eb);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 6px 18px rgba(56,139,253,0.35);
}

button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(56,139,253,0.5); }
button:active { transform: translateY(0); }

.error {
    background: rgba(248,81,73,0.12);
    border: 1px solid rgba(248,81,73,0.35);
    color: #ff7b72;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

.footer {
    display: flex;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 11px;
    color: #6b7686;
}

.copyright {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: #55607030;
    color: #5b6575;
}
