body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: radial-gradient(circle at top, #1a1f2e, #0b0f1a);
    color: #fff;

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px; /* important for small screens */
    box-sizing: border-box;
}

.card {
    width: 100%;
    max-width: 380px; /* prevents it from being too wide on desktop */
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Typography */
.logo {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.tagline {
    text-align: center;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 20px;
}

label {
    font-size: 13px;
    color: #ccc;
}

input {
    width: 100%;
    padding: 10px 12px;
    margin: 6px 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    outline: none;
    box-sizing: border-box;
}

input:focus {
    border-color: #6c7bff;
    box-shadow: 0 0 0 2px rgba(108,123,255,0.2);
}

.btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6c7bff, #8a5bff);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.footer {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #aaa;
}

a {
    color: #8a5bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.error {
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid rgba(255, 80, 80, 0.3);
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    color: #ff9b9b;
    margin-bottom: 15px;
    text-align: center;
}

/* MOBILE FIXES */
@media (max-width: 480px) {
    .card {
        padding: 20px;
        border-radius: 12px;
    }

    .logo {
        font-size: 22px;
    }

    input {
        padding: 12px;
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    .btn {
        padding: 12px;
        font-size: 16px;
    }
}