/* === auth.css === */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-main);
    color: var(--text-main);
}

.auth-container {
    width: 100%;
    max-width: 900px;
    min-height: 550px;
    background-color: var(--card-bg);
    /* Slate 800 */
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl, 0 25px 50px -12px rgba(0, 0, 0, 0.5));
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    margin: 1rem;
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .auth-container {
        grid-template-columns: 40% 60%;
    }
}

.auth-panel-left {
    display: none;
    background: var(--bg-secondary);
    /* Slate 900/800 mix */
    color: var(--text-main);
    padding: 3rem;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .auth-panel-left {
        display: flex;
    }
}

/* Logo Styling */
.auth-panel-left .logo-img {
    width: 80px;
    height: auto;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.auth-panel-left h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.auth-panel-left p {
    font-size: 1rem;
    max-width: 300px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.auth-panel-right {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--card-bg);
}

@media (min-width: 768px) {
    .auth-panel-right {
        padding: 3rem;
    }
}

.auth-form {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.auth-form h2 {
    color: var(--text-main);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-form .form-subtitle {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-main);
    /* Darker input bg */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-form .btn-primary {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    justify-content: center;
    margin-top: 1rem;
}

.auth-switch-link {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-switch-link a {
    color: var(--primary-light);
    font-weight: 500;
    text-decoration: none;
}

.auth-switch-link a:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* Password Toggle */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.password-toggle-btn:hover {
    color: var(--text-main);
}

/* Validation */
.password-requirements-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.requirement-item {
    margin-bottom: 4px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirement-item::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f111';
    /* fa-circle */
    font-size: 0.5rem;
}

.requirement-item.valid {
    color: var(--success);
    opacity: 1;
}

.requirement-item.valid::before {
    content: '\f058';
    /* fa-circle-check */
    font-size: 0.9rem;
}

.requirement-item.invalid {
    color: var(--danger);
    opacity: 1;
}

.requirement-item.invalid::before {
    content: '\f057';
    /* fa-circle-xmark */
    font-size: 0.9rem;
}

/* Password Match Error */
.password-match-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
    /* Hidden by default */
    font-weight: 500;
}

.password-match-error.show {
    display: block;
    animation: fadeIn 0.3s ease;
}