/* Login Page Styles */

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: var(--leading-normal);
    background: var(--bg-body);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
}

.login-container {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: var(--control-border);
    box-shadow: var(--elevation-3), 0 0 0 1px var(--border);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--accent-indigo-strong), var(--accent-purple-strong));
    padding: var(--space-8);
    text-align: center;
    color: white;
}

.login-logo {
    height: 50px;
    width: auto;
    margin-bottom: var(--space-4);
    filter: brightness(0) invert(1);
}

.login-header h1 {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-2);
}

.login-header p {
    opacity: 0.9;
    font-size: var(--text-base);
}

.login-body {
    padding: var(--space-8);
}

.form-group input::placeholder {
    color: var(--text-gray);
}

.form-group .hint {
    font-size: var(--text-sm);
    color: var(--text-gray);
    margin-top: var(--space-2);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: var(--text-md);
    padding: var(--space-1);
    transition: color var(--transition-slow);
}

.toggle-password:hover {
    color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    font-size: var(--text-base);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.remember-me input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    accent-color: var(--primary);
}

.remember-me label {
    margin: 0;
    font-weight: var(--weight-medium);
    color: var(--text-gray);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: var(--weight-medium);
    transition: color var(--transition-slow);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.legal-agreement {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: var(--control-border);
}

.legal-agreement input[type="checkbox"] {
    width: auto;
    margin-top: var(--space-1);
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.legal-agreement label {
    margin: 0;
    font-size: var(--text-base);
    color: var(--text-gray);
    line-height: var(--leading-base);
}

.legal-agreement a {
    color: var(--primary);
    text-decoration: none;
    font-weight: var(--weight-medium);
}

.legal-agreement a:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    margin: var(--space-6) 0;
    color: var(--text-gray);
    font-size: var(--text-base);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--border);
}

.divider span {
    padding: 0 var(--space-4);
}

.back-home {
    text-align: center;
}

.back-home a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-gray);
    text-decoration: none;
    font-weight: var(--weight-medium);
    transition: color var(--transition-slow);
    font-size: var(--text-md);
}

.back-home a:hover {
    color: var(--primary);
}

.features-list {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}

.features-list h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
    color: var(--text-dark);
    text-align: center;
    font-weight: var(--weight-semibold);
}

.features-list ul {
    list-style: none;
    font-size: var(--text-base);
    color: var(--text-gray);
}

.features-list li {
    padding: var(--space-2) 0;
    padding-left: var(--space-6);
    position: relative;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.login-footer {
    background: var(--bg-light);
    padding: var(--space-5) var(--space-8);
    text-align: center;
    font-size: var(--text-base);
    color: var(--text-gray);
    border-top: 1px solid var(--border);
}

/* Password reset specific */

.body {
    padding: var(--space-8);
}

.form-group input[readonly] {
    background: var(--bg-light);
    color: var(--text-gray);
}

.password-requirements {
    font-size: var(--text-sm);
    color: var(--text-gray);
    margin-top: var(--space-2);
}

@media (max-width: 480px) {
    .login-header {
        padding: var(--space-6);
    }

    .login-header h1 {
        font-size: var(--text-lg);
    }

    .login-body {
        padding: var(--space-6);
    }

    .form-options {
        flex-direction: column;
        gap: var(--space-4);
        align-items: flex-start;
    }
}
