/* =========================================================================
   AUTH LAYOUT - Split Screen Design
   ========================================================================= */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Nunito', sans-serif;
    color: #333;
    background-color: #fff;
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.auth-wrapper *, .auth-wrapper *::before, .auth-wrapper *::after {
    box-sizing: border-box;
}

/* =====================================
   LEFT COLUMN (Branding / Gradient)
   ===================================== */
.auth-left {
    flex: 1.1;
    position: relative;
    background: linear-gradient(-300deg, #7b2ff7 0%, #e91e8c 100%);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Glowing orbs for background texture */
.auth-left::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 1;
}

.auth-left::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -100px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.15);
    filter: blur(60px);
    border-radius: 50%;
    z-index: 1;
}

.auth-left-content {
    z-index: 2;
    position: relative;
    max-width: 480px;
    margin: auto 0;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 60px;
    z-index: 2;
    position: relative;
}

.auth-logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.auth-logo-text {
    font-weight: 800;
    font-size: 20px;
    line-height: 1.1;
}

.auth-heading {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.auth-subheading {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 15px;
}

.auth-feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.auth-testimonial {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    z-index: 2;
    position: relative;
}

.auth-testimonial-quote {
    font-style: italic;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    line-height: 1.5;
}

.auth-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-testimonial-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.auth-testimonial-info strong {
    display: block;
    font-size: 13px;
}

.auth-testimonial-info span {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.auth-premium-badge {
    background: #fcd34d;
    color: #78350f;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.testimonial-slide {
    display: none;
    animation: slideFadeIn 0.6s ease-out;
}

.testimonial-slide.active {
    display: block;
}

@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =====================================
   RIGHT COLUMN (Form)
   ===================================== */
.auth-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
}

.auth-top-nav {
    padding: 30px 40px;
    display: flex;
    align-items: center;
}

.auth-back-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: #0f172a;
}

.auth-form-container {
    max-width: 440px;
    width: 100%;
    margin: auto;
    padding: 20px 40px;
}

.auth-form-header {
    margin-bottom: 35px;
}

.auth-form-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.auth-form-header p {
    color: #64748b;
    font-size: 15px;
}

/* Base Form Elements */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.auth-input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    transition: all 0.2s ease;
    background: #fafafa;
}

.auth-input:focus {
    outline: none;
    border-color: #9b3ff0;
    box-shadow: 0 0 0 4px rgba(155, 63, 240, 0.1);
    background: #ffffff;
}

.auth-input::placeholder {
    color: #cbd5e1;
}

.auth-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.auth-password-toggle:hover {
    color: #64748b;
}

/* Actions Row (Remember me, forgot password) */
.auth-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    cursor: pointer;
}

.auth-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #9b3ff0;
}

.auth-forgot-link {
    color: #e91e8c;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-forgot-link:hover {
    color: #be1872;
    text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(-300deg, #7b2ff7 0%, #e91e8c 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.auth-submit-btn:hover {
    opacity: 0.9;
}

.auth-submit-btn:active {
    transform: scale(0.98);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 15px;
}

/* Google Sign-In Container Override */
.google-signin-login {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.auth-form-footer {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.auth-form-footer a {
    color: #e91e8c;
    font-weight: 700;
    text-decoration: none;
}

.auth-form-footer a:hover {
    text-decoration: underline;
}

.auth-copyright {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    padding-bottom: 20px;
}

/* Alert Boxes Override */
.auth-right .alert {
    border-radius: 10px;
    font-size: 14px;
    border: none;
}

/* =====================================
   SOCIAL LOGIN BUTTONS
   ===================================== */
.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.google-signin-btn,
.facebook-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.google-signin-btn {
    background-color: #ffffff;
    color: #3c4043;
    border: 1.5px solid #dadce0;
}

.google-signin-btn:hover {
    background-color: #f7f8f8;
    border-color: #c4c7c9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.google-signin-btn:active {
    transform: scale(0.98);
}

.facebook-signin-btn {
    background-color: #1877F2;
    color: #ffffff;
    border: none;
}

.facebook-signin-btn:hover {
    background-color: #166fe5;
}

.facebook-signin-btn:active {
    transform: scale(0.98);
}

.google-signin-btn svg,
.facebook-signin-btn svg {
    flex-shrink: 0;
}

/* =====================================
   MOBILES & TABLET (Responsive)
   ===================================== */
@media (max-width: 900px) {
    .auth-left {
        display: none; /* Hide background graphic side on mobile */
    }
    
    .auth-right {
        justify-content: flex-start;
    }
    
    .auth-top-nav {
        position: relative;
        padding: 20px 25px 0px;
    }
    
    .auth-form-container {
        padding: 30px 25px 40px;
        margin: 0 auto;
    }
    
    .auth-form-header h2 {
        font-size: 24px;
    }
}
