/* =============================================
   Giriş Sayfası Stilleri - Uzaktanoku
   ============================================= */

:root {
    --color-primary: #0d6e9f;
    --color-primary-dark: #0a5a82;
    --color-primary-light: #1a8fc4;
    --color-accent: #00b4a0;
    --color-accent-light: #33c9b8;

    --color-bg-dark: #0a2540;
    --color-bg-darker: #061a2e;
    --color-bg-form: #ffffff;
    --color-text-dark: #1a2b3c;
    --color-text-muted: #6b7c93;
    --color-text-light: #e8f4fc;
    --color-border: #e2e8f0;
    --color-error: #e53e3e;
    --color-error-bg: #fff5f5;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body.login-page {
    font-family: var(--font-family);
    background: var(--color-bg-darker);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Ana Layout ---- */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ---- Sağ Panel (Tanıtım / Duyuru) ---- */
.login-hero {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary-dark) 50%, var(--color-accent) 100%);
    padding: 3rem;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    color: var(--color-text-light);
}

.hero-brand {
    margin-bottom: 3rem;
}

.hero-brand-image {
    display: block;
    width: 360px;
    max-width: 100%;
    height: auto;
}

.hero-heading {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.hero-text {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.hero-quote {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.75;
    padding-left: 1rem;
    border-left: 3px solid var(--color-accent-light);
    margin-bottom: 2.5rem;
}

.hero-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
    transition: background var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.14);
}

.feature-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-accent-light);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

/* Dekoratif arka plan */
.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.deco-circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.deco-circle-2 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: -50px;
}

.deco-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ---- Sol Panel (Giriş Formu) ---- */
.login-form-panel {
    flex: 0 0 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-form);
    padding: 2.5rem;
}

.form-container {
    width: 100%;
    max-width: 380px;
}

.form-header {
    margin-bottom: 2rem;
}

.form-logo-mobile {
    display: none;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.form-logo-image {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ---- Uyarı ---- */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.alert-error {
    background: var(--color-error-bg);
    color: var(--color-error);
    border: 1px solid rgba(229, 62, 62, 0.2);
}

/* ---- Form Elemanları ---- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.input-icon svg {
    width: 100%;
    height: 100%;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.75rem;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--color-text-dark);
    background: #f8fafc;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-input::placeholder {
    color: #a0aec0;
}

.form-input:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 159, 0.15);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.toggle-password:hover {
    color: var(--color-primary);
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

/* ---- Form Seçenekleri ---- */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--color-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.forgot-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.forgot-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ---- Buton ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 110, 159, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    box-shadow: 0 6px 20px rgba(13, 110, 159, 0.45);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-login {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.btn-login.loading .btn-text {
    opacity: 0;
}

.btn-login.loading .btn-loader {
    display: block;
}

.btn-loader {
    display: none;
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* =============================================
   Responsive - Mobile First
   ============================================= */

@media (max-width: 1024px) {
    .login-hero {
        flex: 0 0 45%;
        padding: 2rem;
    }

    .hero-heading {
        font-size: 1.4rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-hero {
        flex: none;
        padding: 2.5rem 1.5rem 2rem;
        min-height: auto;
    }

    .hero-brand {
        margin-bottom: 1.5rem;
    }

    .hero-brand-image {
        margin: 0 auto;
    }

    .hero-main {
        text-align: center;
    }

    .hero-quote {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--color-accent-light);
        padding-top: 1rem;
    }

    .hero-features {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .feature-item {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }

    .login-form-panel {
        flex: 1;
        padding: 2rem 1.5rem 2.5rem;
    }

    .form-logo-mobile {
        display: flex;
    }

    .form-header {
        text-align: center;
    }
}

@media (max-width: 400px) {
    .hero-features {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
