:root {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    background-color: #f8fafc;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: inherit;
    color: inherit;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #a855f7, transparent 50%), #0f172a;
    background-attachment: fixed;
}

.login-layout {
    width: min(420px, calc(100% - 3rem));
}

.login-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.35);
    color: #f8fafc;
}

.login-header h1 {
    margin: 0.75rem 0 0.25rem;
    font-size: 1.9rem;
}

.subtitle {
    margin: 0;
    color: rgba(248, 250, 252, 0.75);
    line-height: 1.5;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-form {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.input-group label {
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.input-group input {
    border-radius: 12px;
    border: 1px solid rgba(248, 250, 252, 0.35);
    background: rgba(15, 23, 42, 0.35);
    padding: 0.85rem 1rem;
    color: #f8fafc;
    font-size: 1rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.input-group input::placeholder {
    color: rgba(248, 250, 252, 0.5);
}

.input-group input:focus {
    outline: none;
    border-color: #c084fc;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.25);
}

.login-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.8);
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.remember input {
    width: 16px;
    height: 16px;
    accent-color: #c084fc;
}

.link {
    color: #c084fc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.link:hover {
    color: #f0abfc;
}

button[type="submit"] {
    border: none;
    border-radius: 14px;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #c084fc, #a855f7);
    color: #0f172a;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.45);
}

button[type="submit"]:active {
    transform: translateY(0);
}

.register-hint {
    margin-top: 1.75rem;
    text-align: center;
    color: rgba(248, 250, 252, 0.8);
}

@media (max-width: 520px) {
    .login-card {
        padding: 1.75rem;
    }

    .login-extra {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}
