/**
 * Authentication Form Styles
 * 
 * Custom login and registration form styling
 * 
 * @package Leuven Child Theme
 * @since 1.0.0
 */

/* Auth Wrapper */
.leuven-auth-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--color-secondary);
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}

/* Tabs */
.leuven-auth-tabs {
    display: flex;
    position: relative;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 2rem;
    gap: 4px;
}

.leuven-tab {
    flex: 1;
    padding: 0.65rem 1rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.leuven-tab.active {
    background: var(--color-secondary);
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Panels */
.leuven-auth-panel {
    display: none;
}

.leuven-auth-panel.active {
    display: block;
}

/* Social buttons area */
.leuven-social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

/* Divider */
.leuven-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: #aaa;
    font-size: 0.85rem;
}

.leuven-divider::before,
.leuven-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

/* Fields */
.leuven-field {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.leuven-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}

.leuven-field input[type="text"],
.leuven-field input[type="email"],
.leuven-field input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e0d5cc;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.leuven-field input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 184, 150, 0.12);
}

/* Password wrap */
.leuven-password-wrap {
    position: relative;
}

.leuven-password-wrap input {
    padding-right: 3rem;
}

.leuven-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    padding: 0;
    width: 20px;
    height: 20px;
}

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

/* RTL */
[dir="rtl"] .leuven-password-wrap input {
    padding-right: 1rem;
    padding-left: 3rem;
}

[dir="rtl"] .leuven-toggle-password {
    right: auto;
    left: 12px;
}

/* Forgot link */
.leuven-forgot {
    font-size: 0.8rem;
    color: var(--color-accent);
    text-align: right;
    text-decoration: none;
    align-self: flex-end;
}

.leuven-forgot:hover {
    text-decoration: underline;
}

[dir="rtl"] .leuven-forgot {
    text-align: left;
}

/* Checkbox */
.leuven-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.leuven-checkbox input[type="checkbox"] {
    margin-top: 2px;
}

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

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

/* Primary button */
.leuven-btn--primary {
    width: 100%;
    padding: 0.85rem;
    background: var(--color-primary);
    color: var(--color-secondary);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: 0.5rem;
}

.leuven-btn--primary:hover {
    background: var(--color-accent);
}

.leuven-btn--primary:active {
    transform: scale(0.98);
}

/* Password strength meter */
.leuven-password-strength {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* Nextend Social Login button overrides */
.leuven-social-login .nsl-container {
    margin: 0 !important;
}

.leuven-social-login .nsl-container .nsl-button {
    border-radius: 10px !important;
    height: 48px !important;
    font-weight: 600 !important;
    border: 1.5px solid #e0d5cc !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.leuven-social-login .nsl-container .nsl-button-google {
    background: var(--color-secondary) !important;
    color: #333 !important;
}

.leuven-social-login .nsl-container .nsl-button-google:hover {
    background: #f5f5f5 !important;
}

.leuven-social-login .nsl-container .nsl-button-facebook {
    background: #1877f2 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .leuven-auth-wrap {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .leuven-field input[type="text"],
    .leuven-field input[type="email"],
    .leuven-field input[type="password"] {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .leuven-auth-wrap {
        padding: 1.25rem;
        box-shadow: none;
    }
    
    .leuven-tab {
        font-size: 14px;
        padding: 0.6rem 0.75rem;
    }
}
