/**
 * OTOEKO Premium Authentication System
 * Automotive Diagnostic Equipment E-Commerce
 * Premium, Powerful, High-Tech Design
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --otoeko-orange: #f97316;
    --otoeko-orange-dark: #ea580c;
    --otoeko-orange-light: #fb923c;
    --otoeko-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%);
    --otoeko-gradient-hover: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
    
    --text-dark: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    
    --error: #ef4444;
    --success: #22c55e;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(249, 115, 22, 0.3);
    
    --transition-fast: 0.15s ease;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   AUTH SAYFALARI - Header/Footer gizle
   ============================================ */
.auth-page ~ .site-footer,
body:has(.auth-page) .site-header,
body:has(.auth-page) .site-footer,
body:has(.auth-page) .site-nav {
    display: none !important;
}

/* ============================================
   MAIN CONTAINER - Tam ekran auth deneyimi
   ============================================ */
.auth-page {
    min-height: 100vh;
    padding: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page .container {
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding: 20px 2rem;
}

.otoeko-auth__inner {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .otoeko-auth__inner {
        grid-template-columns: 50% 50%;
        min-height: 700px;
    }
}

/* ============================================
   LEFT PANEL: BRAND EXPERIENCE
   ============================================ */
.otoeko-auth__brand {
    position: relative;
    background: var(--otoeko-gradient);
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background Effects */
.brand-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.brand-bg__pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.06) 0%, transparent 30%);
}

.brand-bg__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
}

.brand-bg__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Brand Content */
.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 480px;
}

/* Logo Section */
.brand-logo {
    position: relative;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo__glow {
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 40%, transparent 70%);
    border-radius: 50%;
    animation: logo-glow-pulse 3s ease-in-out infinite;
}

@keyframes logo-glow-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.15);
        opacity: 1;
    }
}

.brand-logo__img {
    position: relative;
    height: 130px;
    width: auto;
    filter: brightness(0) invert(1);
    animation: logo-float 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes logo-float {
    0%, 100% { 
        transform: translateY(0) scale(1);
        filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(255,255,255,0.4));
    }
    50% { 
        transform: translateY(-10px) scale(1.02);
        filter: brightness(0) invert(1) drop-shadow(0 0 40px rgba(255,255,255,0.7));
    }
}

/* Brand Message */
.brand-message {
    margin-bottom: 2.5rem;
}

.brand-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.brand-title__line {
    display: block;
}

.brand-title__line--highlight {
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.brand-subtitle {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.95;
    line-height: 1.6;
}

/* Feature Pills */
.brand-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: var(--transition);
}

.feature-pill:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.feature-pill__icon {
    width: 20px;
    height: 20px;
}

.feature-pill__icon svg {
    width: 100%;
    height: 100%;
}

/* Trust Stats */
.brand-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.trust-stat {
    text-align: center;
}

.trust-stat__number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.trust-stat__label {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
}

/* ============================================
   RIGHT PANEL: AUTH FORMS
   ============================================ */
.otoeko-auth__forms {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 4rem 2rem 4rem;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    transition: border-color 0.3s ease;
}

.otoeko-auth__forms:hover {
    border-color: var(--otoeko-orange);
}

.auth-panel {
    width: 100%;
    max-width: 550px;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--gray-100);
    padding: 6px;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    position: relative;
}

.auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.auth-tab svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--otoeko-orange);
}

.auth-tabs__indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 9px);
    height: calc(100% - 12px);
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tab[data-tab="register"].active ~ .auth-tabs__indicator {
    transform: translateX(calc(100% + 6px));
}

/* Auth Form Wrapper */
.auth-form-wrapper {
    display: none;
    animation: fadeSlideIn 0.4s ease-out;
}

.auth-form-wrapper.active {
    display: block;
}

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

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-header p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Auth Alert */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    animation: shake 0.5s ease-out;
}

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

.auth-alert--error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Social Auth */
.social-auth {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid;
}

.social-btn svg {
    flex-shrink: 0;
}

.social-btn--google {
    background: var(--white);
    border-color: var(--gray-200);
    color: var(--text-primary);
}

.social-btn--google:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.social-btn--facebook {
    background: #1877F2;
    border-color: #1877F2;
    color: var(--white);
}

.social-btn--facebook:hover {
    background: #166FE5;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
    transform: translateY(-2px);
}

.social-btn--apple {
    background: #000000;
    border-color: #000000;
    color: var(--white);
}

.social-btn--apple:hover {
    background: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}


/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Form Field */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-field label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.input-box > svg:first-child {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

.input-box input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--white);
    transition: var(--transition);
}

.input-box input::placeholder {
    color: var(--neutral-500);
}

.input-box input:hover {
    border-color: var(--gray-300);
}

.input-box input:focus {
    outline: none;
    border-color: var(--otoeko-orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.input-box:has(input:focus) > svg:first-child {
    color: var(--otoeko-orange);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 0.75rem;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--otoeko-orange);
}

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

/* Form Row */
.form-row {
    display: flex;
    gap: 1rem;
}

.form-row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}


.form-row--between {
    justify-content: space-between;
    align-items: center;
}

/* Checkbox */
.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-field input {
    display: none;
}

.checkbox-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 5px;
    flex-shrink: 0;
    transition: var(--transition);
    position: relative;
}

.checkbox-box::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><polyline points="20 6 9 17 4 12"/></svg>') center/contain no-repeat;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.checkbox-field input:checked + .checkbox-box {
    background: var(--otoeko-orange);
    border-color: var(--otoeko-orange);
}

.checkbox-field input:checked + .checkbox-box::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-field--terms {
    font-weight: 500;
    align-items: center;
}

.checkbox-field--terms .checkbox-box {
    margin-top: 0;
}

.checkbox-field--terms a {
    color: var(--otoeko-orange);
    font-weight: 600;
    text-decoration: none;
}

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

/* Link Text */
.link-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--otoeko-orange);
    text-decoration: none;
    transition: var(--transition);
}

.link-text:hover {
    color: var(--otoeko-orange-dark);
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--otoeko-gradient);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
}

.submit-btn:hover {
    background: var(--otoeko-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.45);
}

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

.submit-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(4px);
}

/* ============================================
   MODAL - Premium Coming Soon
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 9999;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem 2rem;
    max-width: 360px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--otoeko-gradient);
}

.modal-overlay.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(234, 88, 12, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed rgba(249, 115, 22, 0.3);
    animation: modal-spin 12s linear infinite;
}

@keyframes modal-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal-icon svg {
    width: 36px;
    height: 36px;
    color: var(--otoeko-orange);
}

.modal-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

.modal-box p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.modal-btn {
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2.5rem;
    background: var(--otoeko-gradient);
    color: var(--white);
    border: none;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.modal-btn:hover {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* ============================================
   AUTH LINKS (Forgot Password Page)
   ============================================ */
.auth-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.auth-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.auth-link:hover {
    background: var(--white);
    border-color: var(--otoeko-orange);
    color: var(--otoeko-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-link svg {
    width: 18px;
    height: 18px;
}

/* Success Alert */
.auth-alert--success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Password Strength Indicator */
.password-strength {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: -0.5rem;
}

.password-strength__bar {
    flex: 1;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength__fill {
    height: 100%;
    width: 0;
    background: var(--error);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.password-strength__text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 70px;
    text-align: right;
}

/* Feature Pill Active State */
.feature-pill--active {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* Single Column Layout (Forgot Password) */
/* Şifremi unuttum sayfası da aynı genişlikte olacak */
.otoeko-auth__inner--single {
    /* max-width kaldırıldı - container zaten 1600px */
}

@media (min-width: 1024px) {
    .otoeko-auth__inner--single {
        grid-template-columns: 50% 50%;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.auth-tab:focus-visible,
.submit-btn:focus-visible,
.social-btn:focus-visible,
.password-toggle:focus-visible,
.modal-close:focus-visible,
.modal-btn:focus-visible {
    outline: 2px solid var(--otoeko-orange);
    outline-offset: 2px;
}

.input-box input:focus-visible {
    outline: none;
}
