/* ============================================
   Dosya: assets/css/login.css
   Açıklama: Giriş sayfası stilleri
   ============================================ */

/* Açık Tema (Varsayılan) - style.css ile birebir aynı */
:root {
    --primary: #0f172a;
    --primary-hover: #1e293b;
    --primary-light: #e2e8f0;
    --primary-50: rgba(15, 23, 42, 0.05);
    --primary-10: rgba(15, 23, 42, 0.1);
    --secondary: #64748b;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #06b6d4;
    --info-light: #cffafe;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-elevated: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --shadow-xs: rgba(0, 0, 0, 0.04) 0px 3px 5px;
    --shadow-sm: rgba(0, 0, 0, 0.04) 0px 3px 5px;
    --shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
    --shadow-md: rgba(0, 0, 0, 0.04) 0px 3px 5px;
    --shadow-lg: rgba(0, 0, 0, 0.04) 0px 3px 5px;
    --shadow-xl: rgba(0, 0, 0, 0.04) 0px 3px 5px;
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 9999px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Karanlık Tema */
[data-theme="karanlik"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.15);
    --shadow-xs: rgba(0, 0, 0, 0.04) 0px 3px 5px;
    --shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
    --shadow-md: rgba(0, 0, 0, 0.04) 0px 3px 5px;
    --shadow-lg: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-page {
    min-height: 100vh;
}

.login-container {
    display: flex;
    min-height: 100vh;
}

/* Sol Taraf - Gradient Arka Plan */
.login-left {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: none;
    background: var(--primary);
    color: white;
}

@media (min-width: 992px) {
    .login-left {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 3rem;
    }
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.login-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.login-left-content {
    text-align: center;
    z-index: 2;
}

/* Sağ Taraf */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-primary);
}

[data-theme="karanlik"] .login-right {
    background: var(--bg-secondary);
}

@media (min-width: 992px) {
    .login-right {
        max-width: 700px;
        flex: 0 0 700px;
    }
}

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

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

.login-form-container h2 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.input-with-btn {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    transition: var(--transition);
    overflow: hidden;
}

[data-theme="karanlik"] .input-with-btn {
    background: var(--bg-tertiary);
}

.input-with-btn:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.input-with-btn i {
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 0 0 0 1rem;
    flex-shrink: 0;
}

.input-with-btn input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.8rem 0.5rem 0.8rem 0.75rem;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
    min-width: 0;
}

.input-with-btn input::placeholder {
    color: var(--text-muted);
}

.input-with-btn .toggle-password,
.input-with-btn .refresh-captcha {
    position: static;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.input-with-btn .toggle-password:hover,
.input-with-btn .refresh-captcha:hover {
    color: var(--primary);
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.captcha-code-box {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    flex-shrink: 0;
    min-width: 80px;
    text-align: center;
    user-select: none;
}

.captcha-input {
    flex: 1;
}

.btn-login {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

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

.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.login-footer a {
    color: var(--primary);
}

/* Alert */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* PWA Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    z-index: 9999;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pwa-install-content i {
    font-size: 2rem;
    color: var(--primary);
}

.pwa-install-content div {
    flex: 1;
}

.pwa-install-content strong {
    display: block;
    font-size: 1rem;
}

.pwa-install-content p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.modal-header .modal-title i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body h6 {
    font-weight: 600;
    color: var(--primary);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.modal-body h6:first-child {
    margin-top: 0;
}

.modal-body p,
.modal-body li {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

.modal-body ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.modal-body li {
    margin-bottom: 0.3rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
}

/* Responsive */
@media (max-width: 991.98px) {
    .login-container {
        justify-content: center;
    }
    
    .login-right {
        max-width: 100%;
        flex: 1;
    }
}

@media (max-width: 575.98px) {
    .login-right {
        padding: 1.5rem;
    }
    
    .login-form-container h2 {
        font-size: 1.5rem;
    }
    
    .login-logo {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        font-size: 2rem;
    }
    
    .captcha-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-code-box {
        text-align: center;
    }
}
