/* 
 * Auth Pages Styles - Lead.Up CRM SaaS
 * Custom styles for Login, Register, Forgot Password and 2FA
 */

:root {
    --color-primary: #FEB900;
    --color-secondary: #364D59;
    --color-border: #e2e8f0;
    --color-muted: #6c757d;
}

body.auth-page {
    background-color: #f8f9fa;
    height: 100vh;
    font-family: 'Work Sans', sans-serif;
}

/* Split-screen Layout (Login/Register) */
.auth-wrapper {
    display: flex;
    height: 100vh;
}

.auth-side-image {
    flex: 1;
    background: linear-gradient(rgba(var(--color-secondary-rgb, 54, 77, 89), 0.7), rgba(var(--color-secondary-rgb, 54, 77, 89), 0.85)), url('../img/auth_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    color: #fff;
}

.auth-side-form {
    width: 450px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    z-index: 2;
    overflow-y: auto;
}

.auth-side-form.wide {
    width: 500px;
    padding: 40px 60px;
}

/* Centered Card Layout (Forgot/2FA) */
body.auth-centered {
    background: linear-gradient(rgba(var(--color-secondary-rgb, 54, 77, 89), 0.9), rgba(var(--color-secondary-rgb, 54, 77, 89), 0.95)), url('../img/auth_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    text-align: center;
}

/* Shared Components */
.auth-logo {
    margin-bottom: 40px;
}

.auth-logo.small {
    margin-bottom: 30px;
}

.auth-logo img {
    max-height: 45px;
}

.auth-header h2 {
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
    text-align: left;
}

.form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1.5px solid var(--color-border);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--color-primary-rgb, 254, 185, 0), 0.1);
}

.btn-auth {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-top: 10px;
    width: 100%;
}

.btn-auth:hover {
    background-color: var(--color-primary-dark, #e5a700);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--color-primary-rgb, 254, 185, 0), 0.3);
    color: #fff;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s;
    color: var(--color-secondary);
    font-size: 1.2rem;
}

.social-btn:hover {
    background-color: #f8f9fa;
    border-color: #cbd5e0;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #cbd5e0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.divider:not(:empty)::before { margin-right: .5em; }
.divider:not(:empty)::after { margin-left: .5em; }

/* Auth Footer */
.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-muted);
}

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

/* Feature Items (Side image) */
.feature-item {
    margin-bottom: 30px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    display: block;
}

.feature-item h4 {
    font-weight: 700;
    font-size: 1.25rem;
}

.feature-item p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Quote and Avatars (Register) */
.quote-box h1 {
    font-weight: 700;
}

.avatar-group img {
    width: 35px;
    height: 35px;
    border: 2px solid #fff;
}

.password-strength {
    height: 4px;
    background-color: var(--color-border);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    background-color: #ffc107;
    transition: all 0.4s ease-in-out;
}

/* Forgot/2FA Specifics */
.icon-box {
    width: 80px;
    height: 80px;
    background-color: rgba(var(--color-primary-rgb, 254, 185, 0), 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 30px;
}

.icon-box.security {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.back-to-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.back-to-login:hover {
    color: var(--color-primary);
}

.otp-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    background-color: #f8fafc;
    transition: all 0.2s;
}

.otp-input:focus {
    border-color: var(--color-primary);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb, 254, 185, 0), 0.1);
}

.resend-box {
    margin-top: 25px;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #64748b;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .auth-side-image {
        display: none;
    }
    .auth-side-form, .auth-side-form.wide {
        width: 100%;
        padding: 40px;
    }
    .auth-centered {
        padding: 15px;
    }
    .auth-card {
        padding: 30px 20px;
    }
}