/* Auth Pages */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    flex: 1;
}

.auth-logo-top {
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-logo-top a {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-logo-top a:hover {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 850px;
    align-items: stretch;
}

@media (max-width: 800px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

.auth-card {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.15), rgba(159, 122, 234, 0.08));
    border: 2px solid rgba(255, 215, 0, 0.25);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.25rem;
    color: var(--color-accent);
}

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(26, 11, 46, 0.85);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.form-input small {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.form-checkbox-label {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.form-checkbox-label a {
    color: var(--color-accent);
    text-decoration: none;
}

.form-checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-password {
    text-align: right;
    margin-top: 0.25rem;
}

.forgot-password a {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password a:hover {
    color: var(--color-accent);
}

.password-strength {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 0.3rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { background: #ef4444; width: 33%; }
.strength-medium { background: #f59e0b; width: 66%; }
.strength-strong { background: #10b981; width: 100%; }

.btn-primary {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--color-accent), #e6c200);
    color: #1a0b2e;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.25rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    display: block;
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--color-accent), #e6c200);
    color: #1a0b2e;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

/* Sidebar */
.auth-sidebar {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.2), rgba(159, 122, 234, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.auth-sidebar-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.auth-sidebar-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.auth-sidebar-text {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Alertes */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-success a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.alert-success a:hover {
    color: #fff;
    text-decoration: none;
}

/* Footer legacy */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
    margin-left: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    text-decoration: none;
    border-bottom-color: var(--color-accent);
    color: #fff;
}

/* Register CTA legacy */
.register-cta {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--color-text);
}

.register-cta a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
    margin-left: 0.5rem;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.register-cta a:hover {
    color: #fff;
    border-bottom-color: var(--color-accent);
}

/* Auth box legacy */
.auth-box {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.15), rgba(159, 122, 234, 0.08));
    border: 2px solid rgba(255, 215, 0, 0.25);
    border-radius: 20px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

/* Auth logo legacy */
.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo a {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-logo a:hover {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}
