/**
 * Authentication Styles
 * Beautiful split-screen authentication layouts
 */

/* ============================================
   Auth Container & Layout
   ============================================ */

.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    background: #ffffff;
    z-index: 10000;
}

/* Left Panel - Testimonial/Hero Section */
.auth-left-panel {
    flex: 1;
    background: linear-gradient(135deg, #5b9bd5 0%, #4a8bc2 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.auth-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    z-index: 1;
}

.auth-branding svg {
    width: 32px;
    height: 32px;
}

.auth-hero-content {
    z-index: 1;
    max-width: 500px;
}

.auth-hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.auth-hero-description {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 40px;
}

.auth-testimonial {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-stars {
    color: #ffd700;
    font-size: 20px;
    margin-bottom: 12px;
    letter-spacing: 4px;
}

.auth-testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
}

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

.auth-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.auth-testimonial-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.auth-testimonial-info p {
    font-size: 12px;
    margin: 0;
    opacity: 0.8;
}

/* Right Panel - Form Section */
.auth-right-panel {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    overflow-y: auto;
}

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

.auth-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.auth-form-subtitle {
    font-size: 15px;
    color: #666;
}

/* Tab Switcher */
.auth-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    background: #f5f5f5;
    padding: 6px;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: white;
    color: #5b9bd5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-tab:hover:not(.active) {
    color: #333;
}

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

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

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

.auth-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    background: #fafafa;
}

.auth-input:focus {
    outline: none;
    border-color: #5b9bd5;
    background: white;
    box-shadow: 0 0 0 4px rgba(91, 155, 213, 0.1);
}

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

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

.auth-error-message {
    font-size: 13px;
    color: #ef4444;
    margin-top: 4px;
}

/* Password Toggle */
.auth-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.auth-password-toggle:hover {
    color: #5b9bd5;
}

/* Password Strength Indicator */
.auth-password-strength {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.auth-strength-bar {
    flex: 1;
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.auth-strength-bar.active {
    background: #5b9bd5;
}

.auth-strength-bar.weak {
    background: #ef4444;
}

.auth-strength-bar.medium {
    background: #f59e0b;
}

.auth-strength-bar.strong {
    background: #10b981;
}

/* Forgot Password Link */
.auth-forgot-password {
    text-align: right;
    margin-top: -8px;
}

.auth-forgot-password a {
    font-size: 14px;
    color: #5b9bd5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-forgot-password a:hover {
    color: #4a8bc2;
    text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #5b9bd5 0%, #4a8bc2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(91, 155, 213, 0.3);
}

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

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: #999;
    font-size: 14px;
}

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

/* Google Sign In Button */
.auth-google-btn {
    width: 100%;
    padding: 14px;
    background: white;
    color: #333;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.auth-google-btn:hover {
    border-color: #5b9bd5;
    background: #f8fbff;
}

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

/* Terms & Privacy */
.auth-terms {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 24px;
    line-height: 1.6;
}

.auth-terms a {
    color: #5b9bd5;
    text-decoration: none;
    font-weight: 500;
}

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

/* Loading State */
.auth-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 968px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-left-panel {
        padding: 40px 30px;
        min-height: 300px;
    }

    .auth-hero-title {
        font-size: 32px;
    }

    .auth-testimonial {
        display: none;
    }

    .auth-right-panel {
        padding: 40px 30px;
    }

    .auth-form-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .auth-left-panel {
        padding: 30px 20px;
        min-height: 250px;
    }

    .auth-hero-title {
        font-size: 28px;
    }

    .auth-hero-description {
        font-size: 14px;
    }

    .auth-right-panel {
        padding: 30px 20px;
    }

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

    .auth-form-title {
        font-size: 24px;
    }
}

/* ============================================
   Animations
   ============================================ */

.auth-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-slide-in {
    animation: slideIn 0.4s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}