/* ==================== TEXTSIGHT.AI AUTH PAGES - 2025 POLISHED ==================== */
/* Split-Screen Layout with Animations & Modern Polish */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background: #f8fafc;
}

/* ==================== PAGE LAYOUT ==================== */
.auth-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ==================== LEFT PANEL - BRANDING ==================== */
.auth-left {
    width: 45%;
    min-width: 420px;
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #6d28d9 100%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: fadeInLeft 0.6s ease-out;
}

/* Decorative gradient circles for depth */
.auth-left::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
    top: -250px;
    right: -150px;
    border-radius: 50%;
    pointer-events: none;
}

.auth-left::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
    bottom: -200px;
    left: -100px;
    border-radius: 50%;
    pointer-events: none;
}

/* Additional floating particles */
.auth-left-content::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 60%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-left-content {
    position: relative;
    z-index: 1;
    max-width: 440px;
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 56px;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.auth-logo-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-logo-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.auth-logo-text {
    font-size: 26px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

/* Headline */
.auth-headline {
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.auth-headline h1 {
    font-size: 44px;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.auth-headline p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* Benefits List */
.auth-benefits {
    list-style: none;
    margin-top: 40px;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    animation: slideInLeft 0.6s ease-out both;
}

.auth-benefits li:nth-child(1) { animation-delay: 0.4s; }
.auth-benefits li:nth-child(2) { animation-delay: 0.5s; }
.auth-benefits li:nth-child(3) { animation-delay: 0.6s; }
.auth-benefits li:nth-child(4) { animation-delay: 0.7s; }

.benefit-icon {
    width: 36px;
    height: 36px;
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 18px;
    height: 18px;
    color: #34d399;
}

/* Feature Cards (Signup) */
.auth-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
    animation: slideInLeft 0.6s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.3s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.5s; }
.feature-card:nth-child(4) { animation-delay: 0.6s; }

.feature-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(6px);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: #34d399;
}

.feature-text .title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.feature-text .desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Trust Badge */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: 14px 22px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 50px;
    color: #d1fae5;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.8s ease-out 0.7s both;
}

.trust-badge svg {
    width: 18px;
    height: 18px;
    color: #34d399;
}

/* Testimonial */
.auth-testimonial {
    margin-top: 48px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-out 0.8s both;
}

.auth-testimonial .quote {
    font-size: 16px;
    font-style: italic;
    color: white;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.author-info .name {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.author-info .title {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== RIGHT PANEL - FORM ==================== */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #f8fafc;
    animation: fadeInRight 0.6s ease-out;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

/* Mobile Logo (hidden on desktop) */
.mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 36px;
}

.mobile-logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.mobile-logo-icon svg {
    width: 34px;
    height: 34px;
    color: white;
}

.mobile-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

/* Form Header */
.auth-form-container h2 {
    font-size: 34px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 36px;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

/* ==================== INPUT FIELDS - SOLID BORDERS (NO DASHED!) ==================== */
.form-group input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    font-size: 15px;
    font-family: inherit;
    color: #0f172a;
    background: white;
    border: 2px solid #e2e8f0;  /* ✅ SOLID border, NOT dashed */
    border-radius: 12px;
    transition: all 0.2s ease;
}

.form-group input:hover {
    border-color: #cbd5e1;
}

.form-group input:focus {
    outline: none;
    border-color: #7c3aed;  /* ✅ SOLID purple on focus */
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input.error {
    border-color: #ef4444;
}

.form-group input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.form-group input.valid {
    border-color: #10b981;
}

.form-group input.valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* Password Input with Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    background: #f1f5f9;
    color: #7c3aed;
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.92);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Form Hints */
.form-hint {
    font-size: 13px;
    color: #64748b;
    margin-top: -4px;
}

/* Forgot Password */
.forgot-link {
    display: block;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    color: #7c3aed;
    text-decoration: none;
    margin-top: -8px;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #6d28d9;
    text-decoration: underline;
}

/* Error & Success Messages */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
    margin-bottom: 16px;
    animation: shakeX 0.4s ease;
}

.error-message.show {
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
    margin-bottom: 16px;
}

.success-message.show {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==================== PRIMARY BUTTON ==================== */
.btn-primary {
    width: 100%;
    height: 54px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.btn-primary.loading {
    pointer-events: none;
}

.btn-primary .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.btn-primary.loading .spinner {
    display: block;
}

.btn-primary.loading .btn-text {
    display: none;
}

/* ==================== DIVIDER ==================== */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 26px 0;
}

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

.divider span {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

/* ==================== GOOGLE BUTTON - SOLID BORDER ==================== */
.btn-google {
    width: 100%;
    height: 54px;
    background: white;
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border: 2px solid #e2e8f0;  /* ✅ SOLID border, NOT dashed */
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-google:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-google:active {
    transform: translateY(0);
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

/* ==================== FOOTER LINKS ==================== */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid #e2e8f0;
}

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

.auth-footer a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #6d28d9;
    text-decoration: underline;
}

/* Terms Text */
.terms-text {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
    margin-top: 22px;
}

.terms-text a {
    color: #7c3aed;
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* ==================== PASSWORD STRENGTH ==================== */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

.strength-fill.weak {
    width: 33%;
    background: #ef4444;
}

.strength-fill.medium {
    width: 66%;
    background: #f59e0b;
}

.strength-fill.strong {
    width: 100%;
    background: #10b981;
}

.strength-text {
    font-size: 12px;
    color: #64748b;
}

.strength-text.weak { color: #ef4444; }
.strength-text.medium { color: #f59e0b; }
.strength-text.strong { color: #10b981; }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shakeX {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .auth-left {
        width: 42%;
        min-width: 360px;
        padding: 40px;
    }
    
    .auth-headline h1 {
        font-size: 36px;
    }
    
    .auth-right {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .auth-page {
        flex-direction: column;
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        width: 100%;
        min-height: 100vh;
        padding: 32px 24px;
        background: white;
        animation: fadeIn 0.5s ease-out;
    }
    
    .auth-form-container {
        max-width: 400px;
    }
    
    .mobile-logo {
        display: block;
    }
    
    .auth-form-container h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .form-subtitle {
        text-align: center;
    }
}
