/* Auth Landing Page Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

.auth-landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

/* Background Pattern */
.auth-landing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Left Side: Branding Section */
.branding-section {
    flex: 0 0 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    z-index: 1;
}

.branding-content {
    max-width: 600px;
    width: 100%;
    color: white;
}

.branding-logo {
    margin-bottom: 3rem;
}

.branding-logo img {
    width: 150px;
    height: auto;
    display: block;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.logo-placeholder i {
    font-size: 2rem;
}

.branding-heading {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.branding-subheading {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.benefits-list {
    list-style: none;
    margin-bottom: 4rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
}

.benefit-icon {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.branding-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
}

/* Right Side: Authentication Panel */
.auth-panel-section {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #f8f9fa;
    position: relative;
    z-index: 1;
}

.auth-panel-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    position: relative;
}

/* Tab Toggle */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px 8px 0 0;
}

.auth-tab:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.auth-tab.active {
    color: #667eea;
    font-weight: 600;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #667eea;
}

.auth-tab:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Auth Panel */
.auth-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

.auth-panel-header {
    margin-bottom: 2rem;
    text-align: center;
}

.auth-panel-title {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.auth-panel-subtitle {
    font-size: 16px;
    color: #6c757d;
}

/* Error Message */
.auth-error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 14px;
    border: 1px solid #f5c6cb;
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.oauth-btn {
    width: 100%;
    height: 56px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    position: relative;
    padding: 0 1.5rem;
}

.oauth-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.oauth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.oauth-btn-google {
    background-color: white;
    color: #212529;
    border: 1px solid #dee2e6;
}

.oauth-btn-google:hover:not(:disabled) {
    background-color: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.oauth-btn-google:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.oauth-btn-linkedin {
    background-color: #0A66C2;
    color: white;
    border: none;
}

.oauth-btn-linkedin:hover:not(:disabled) {
    background-color: #004182;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.oauth-btn-linkedin:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.oauth-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.oauth-btn-text {
    flex: 1;
    text-align: center;
}

.oauth-btn-spinner {
    display: flex;
    align-items: center;
}

/* Legal Agreement */
.auth-legal {
    margin-bottom: 1.5rem;
    text-align: center;
}

.legal-text {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.5;
}

.legal-link {
    color: #667eea;
    text-decoration: underline;
}

.legal-link:hover {
    color: #764ba2;
}

/* Security Badge */
.auth-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 12px;
    color: #6c757d;
    margin-top: 1rem;
}

.auth-security i {
    color: #28a745;
    font-size: 14px;
}

/* Help Text */
.auth-help {
    text-align: center;
    margin-top: 1.5rem;
}

.help-text {
    font-size: 14px;
    color: #6c757d;
}

.help-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.help-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Loading State */
.auth-panel-container.loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-panel-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Success State */
.auth-success {
    text-align: center;
    padding: 2rem;
}

.auth-success-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 1rem;
    animation: checkmarkAnimation 0.5s ease-in-out;
}

@keyframes checkmarkAnimation {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.auth-success-message {
    font-size: 18px;
    color: #212529;
    margin-bottom: 0.5rem;
}

.auth-success-submessage {
    font-size: 14px;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-landing-page {
        flex-direction: column;
    }

    .branding-section {
        flex: 0 0 auto;
        padding: 2rem;
        min-height: auto;
    }

    .auth-panel-section {
        flex: 1;
        padding: 2rem;
    }

    .branding-heading {
        font-size: 36px;
    }

    .branding-subheading {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .auth-landing-page {
        flex-direction: column;
    }

    .branding-section {
        order: 2;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .auth-panel-section {
        order: 1;
        padding: 1.5rem;
    }

    .auth-panel-container {
        padding: 24px;
    }

    .branding-heading {
        font-size: 32px;
        margin-bottom: 1rem;
    }

    .branding-subheading {
        font-size: 18px;
        margin-bottom: 2rem;
    }

    .benefit-item {
        font-size: 16px;
        margin-bottom: 1rem;
    }

    .benefit-icon {
        font-size: 20px;
    }

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

    .auth-panel-subtitle {
        font-size: 14px;
    }

    .oauth-btn {
        height: 52px;
        font-size: 14px;
        padding: 0 1rem;
    }

    .branding-footer {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 12px;
    }

    .logo-placeholder,
    .branding-logo img {
        width: 120px;
    }
}

@media (max-width: 576px) {
    .auth-panel-container {
        padding: 20px;
        max-width: 100%;
    }

    .auth-tab {
        font-size: 16px;
        padding: 0.5rem 0.75rem;
    }

    .branding-heading {
        font-size: 28px;
    }

    .branding-subheading {
        font-size: 16px;
    }

    .oauth-btn {
        height: 48px;
        font-size: 14px;
    }
}

/* Dark Theme Support (if needed) */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark theme styles if needed */
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .auth-tab.active {
        border-bottom: 3px solid #667eea;
    }

    .oauth-btn {
        border-width: 2px;
    }

    .oauth-btn:focus {
        outline-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

