/**
 * AryaBulut - Auth Pages CSS
 * Login, Forgot Password, Reset Password sayfaları için stiller
 */

/* ================================
   GLOBAL BOX SIZING
   ================================ */
.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
}

/* ================================
   AUTH VARIABLES
   ================================ */
:root {
    --auth-bg-dark: #0a0a0f;
    --auth-bg-card: #12121a;
    --auth-bg-input: #1a1a24;
    --auth-border-color: #2a2a3a;
    --auth-text-primary: #ffffff;
    --auth-text-secondary: #a0a0b0;
    --auth-text-muted: #6b6b7b;
    --auth-primary: #8b5cf6;
    --auth-primary-hover: #7c3aed;
    --auth-primary-glow: rgba(139, 92, 246, 0.4);
    --auth-gradient-1: #8b5cf6;
    --auth-gradient-2: #ec4899;
    --auth-gradient-3: #06b6d4;
    --auth-success: #10b981;
    --auth-error: #ef4444;
}

/* ================================
   AUTH BASE
   ================================ */
.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--auth-bg-dark);
    color: var(--auth-text-primary);
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

/* Scrollbar gizle (tüm tarayıcılar) */
.auth-page .login-section::-webkit-scrollbar {
    display: none;
}
.auth-page .login-section {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.auth-page .features-section::-webkit-scrollbar {
    display: none;
}
.auth-page .features-section {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ================================
   ANIMATED BACKGROUND
   ================================ */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
    animation: bgMove 20s ease-in-out infinite;
}

@keyframes bgMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* Grid Pattern Overlay */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* ================================
   LOGIN WRAPPER
   ================================ */
.login-wrapper {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* ================================
   FEATURES SECTION (Left)
   ================================ */
.features-section {
    display: none;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
}

@media (min-width: 1024px) {
    .features-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.features-content {
    max-width: 540px;
    margin: 0 auto;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--auth-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.brand-badge svg {
    width: 14px;
    height: 14px;
}

.features-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.features-title .gradient-text {
    background: linear-gradient(135deg, var(--auth-gradient-1), var(--auth-gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-subtitle {
    font-size: 1rem;
    color: var(--auth-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Feature Cards */
.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateX(4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
    color: #a78bfa;
}

.feature-icon.pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.05));
    color: #f472b6;
}

.feature-icon.cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.05));
    color: #22d3ee;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.8125rem;
    color: var(--auth-text-muted);
}

/* Brand Logos */
.brand-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-logo-wrapper {
    width: 140px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    transition: all 0.3s ease;
}

.brand-logo-wrapper:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brand-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ================================
   LOGIN SECTION (Right)
   ================================ */
.login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(18, 18, 26, 0.8) 0%, rgba(18, 18, 26, 0.95) 100%);
    backdrop-filter: blur(20px);
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 380px;
}

/* Logo */
.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px var(--auth-primary-glow);
    padding: 10px;
}

.logo-icon .logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.login-logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.login-logo p {
    color: var(--auth-text-muted);
    font-size: 0.9375rem;
}

/* ================================
   AUTH ALERTS
   ================================ */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.auth-alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-alert.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
}

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

/* ================================
   AUTH FORM
   ================================ */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--auth-text-secondary);
}

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

.auth-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-left: 2.75rem;
    background: var(--auth-bg-input);
    border: 1px solid var(--auth-border-color);
    border-radius: 10px;
    color: var(--auth-text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-form-input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-primary-glow);
}

.auth-form-input::placeholder {
    color: var(--auth-text-muted);
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-text-muted);
    pointer-events: none;
}

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

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--auth-text-secondary);
}

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

/* Form Footer */
.auth-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--auth-text-secondary);
}

.auth-checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-primary);
}

.forgot-link {
    font-size: 0.8125rem;
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--auth-gradient-1), var(--auth-gradient-2));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.25rem;
    box-sizing: border-box;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--auth-primary-glow);
}

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

.btn-login svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}

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

.btn-login.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-login.loading svg {
    animation: spin 1s linear infinite;
}

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

/* Help Text */
.auth-help-text {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--auth-border-color);
}

.auth-help-text p {
    font-size: 0.8125rem;
    color: var(--auth-text-muted);
}

.auth-help-text a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
}

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

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1023px) {
    .login-section {
        height: 100vh;
    }
    
    .login-card {
        max-width: 380px;
    }
}

/* Kısa ekranlar için compact spacing */
@media (max-height: 700px) {
    .login-logo {
        margin-bottom: 1.25rem;
    }
    
    .logo-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0.5rem;
    }
    
    .login-logo h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .login-form {
        gap: 0.75rem;
    }
    
    .auth-form-group {
        gap: 0.375rem;
    }
    
    .auth-form-input {
        padding: 0.625rem 1rem 0.625rem 2.75rem;
    }
    
    .btn-login {
        padding: 0.625rem 1.5rem;
    }
    
    .auth-help-text {
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

@media (max-height: 580px) {
    .login-logo p {
        display: none;
    }
    
    .auth-help-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 1.5rem;
    }
    
    .login-logo h1 {
        font-size: 1.5rem;
    }
    
    .auth-form-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* ================================
   AUTH WRAPPER (Forgot/Reset Pages)
   ================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--auth-bg-dark);
}

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

.auth-card {
    background: var(--auth-bg-card);
    border: 1px solid var(--auth-border-color);
    border-radius: 20px;
    padding: 2.5rem;
}

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

.auth-logo .logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--auth-gradient-1), var(--auth-gradient-2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.auth-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-logo p {
    color: var(--auth-text-muted);
    font-size: 0.875rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--auth-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: var(--auth-primary);
}

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

/* ================================
   PASSWORD STRENGTH METER
   ================================ */
.password-strength-meter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strength-bar-bg {
    flex: 1;
    height: 4px;
    background: var(--auth-border-color);
    border-radius: 2px;
    overflow: hidden;
}

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

.password-strength-meter.strength-weak .strength-bar {
    width: 25%;
    background: #ef4444;
}

.password-strength-meter.strength-fair .strength-bar {
    width: 50%;
    background: #f59e0b;
}

.password-strength-meter.strength-good .strength-bar {
    width: 75%;
    background: #22c55e;
}

.password-strength-meter.strength-strong .strength-bar {
    width: 100%;
    background: #10b981;
}

.strength-text {
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 50px;
}

.password-strength-meter.strength-weak .strength-text {
    color: #ef4444;
}

.password-strength-meter.strength-fair .strength-text {
    color: #f59e0b;
}

.password-strength-meter.strength-good .strength-text {
    color: #22c55e;
}

.password-strength-meter.strength-strong .strength-text {
    color: #10b981;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--auth-text-muted);
    margin-top: 0.375rem;
}

/* Legal Links */
.auth-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-legal-links a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-legal-links a:hover {
    color: var(--auth-primary);
}

.auth-legal-links .divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.625rem;
}

/* Auth Footer */
.auth-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    background: linear-gradient(to top, rgba(15, 15, 26, 0.8), transparent);
    pointer-events: none;
}

.auth-footer p {
    margin: 0;
}

@media (max-width: 768px) {
    .auth-legal-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .auth-footer {
        position: relative;
        background: transparent;
        padding: 2rem 1rem;
    }
}
