.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(106, 27, 154, 0.10), transparent 28%),
        radial-gradient(circle at bottom right, rgba(75, 30, 77, 0.16), transparent 34%),
        linear-gradient(180deg, #fbf7fc 0%, #f3edf7 100%);
}

.login-container {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 48px rgba(33, 18, 40, 0.16);
    max-width: 430px;
    width: 100%;
    border: 1px solid rgba(75, 30, 77, 0.08);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-light);
}

.logo {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-form .form-group {
    display: grid;
    gap: 0.45rem;
}

.login-form label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2f2334;
}

.login-form input {
    width: 100%;
    border: 1px solid #d9d2df;
    border-radius: 12px;
    padding: 0.78rem 0.85rem;
    font-size: 0.98rem;
    line-height: 1.35;
    color: #241b2a;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form input::placeholder {
    color: #8a8092;
}

.login-form input:hover {
    border-color: #bdaecc;
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(106, 27, 154, 0.14);
}

.login-form small {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #6f6678;
}

.alert {
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.35;
    border: 1px solid transparent;
}

.alert-danger {
    background: #fff1f2;
    color: #9f1239;
    border-color: #fecdd3;
}

.alert-success {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

.login-submit-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    box-shadow: 0 10px 24px rgba(75, 30, 77, 0.28);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(75, 30, 77, 0.32);
}

.login-submit-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(106, 27, 154, 0.2), 0 14px 28px rgba(75, 30, 77, 0.32);
}

.login-submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.forgot-password-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #5d2f79;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    padding: 0.1rem 0.2rem;
}

.forgot-password-link::before {
    content: '\1F512';
    font-size: 0.86rem;
}

.forgot-password-link:hover {
    color: #4b1e4d;
    text-decoration: underline;
}

.forgot-password-link:focus-visible {
    outline: 2px solid rgba(106, 27, 154, 0.45);
    outline-offset: 2px;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-light);
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.links {
    text-align: center;
    margin-top: 1.5rem;
}

.links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.links a:hover,
.links a:focus-visible {
    text-decoration: underline;
}

.login-secondary-spacing {
    margin-top: 1rem;
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .login-header h1 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 3.2rem;
        margin-bottom: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-submit-btn,
    .login-form input {
        transition: none;
    }
}
