:root {
    --bg-dark: #1f2937;
    --bg-darker: #111827;
    --input-bg: #374151;
    --input-text: #9ca3af;
    --primary-orange: #f97316;
    --primary-orange-hover: #ea580c;
    --text-white: #ffffff;
    --text-muted: #9ca3af;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-white);
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.main-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* --- SOL TARAF --- */
.visual-side {
    flex: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('../../images/login-bg2.avif');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    position: relative;
    height: 100vh;
    transition: background 1.2s ease-in-out, transform 0.8s ease;
}

.visual-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: brightness(0.8) contrast(1.1);
    z-index: 1;
}

.visual-content {
    z-index: 2;
    max-width: 550px;
    animation: fadeIn 1s ease-out;
}

.visual-content h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.visual-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    font-weight: 300;
}

/* --- SAĞ TARAF --- */
.form-side {
    width: 550px;
    background: radial-gradient(circle at top right, #2d3748, var(--bg-darker));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 10;
}

.login-container {
    width: 100%;
    max-width: 400px;
    animation: slideInRight 0.8s ease-out;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Styles */
.form-label {
    color: #e5e7eb;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--primary-orange);
}

.input-group-custom {
    position: relative;
}

.input-group-custom .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--input-text);
    z-index: 10;
    transition: color 0.2s;
}

.form-control-custom {
    background-color: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-white);
    padding: 14px 15px 14px 48px;
    width: 100%;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control-custom:focus {
    background-color: #4b5563;
    border-color: var(--primary-orange);
    outline: none;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.form-control-custom:focus+.input-icon,
.input-group-custom:focus-within .input-icon {
    color: var(--primary-orange);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--input-text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--text-white);
}

.form-check-input {
    background-color: var(--input-bg);
    border-color: #4b5563;
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.form-check-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 0.5rem;
    user-select: none;
    cursor: pointer;
}

.btn-orange {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    margin-top: 1.5rem;
    cursor: pointer;
}

.btn-orange:hover {
    background-color: var(--primary-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-orange:active {
    transform: translateY(0);
}

.btn-orange:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.register-area {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.register-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.register-link {
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    transition: all 0.2s;
}

.register-link:hover {
    color: var(--primary-orange-hover);
    text-decoration: underline;
}

.copyright {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #4b5563;
    font-size: 0.75rem;
    width: 100%;
}

/* Dil Seçici (Sağ Üst Köşe) */
.lang-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.lang-btn {
    background: none;
    border: 1px solid var(--input-bg);
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s;
    margin-left: 4px;
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}


/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .visual-side {
        display: none;
    }

    .form-side {
        width: 100%;
        box-shadow: none;
    }

    .login-header {
        text-align: center;
    }

    .mobile-logo {
        display: block !important;
        margin: 0 auto 2rem auto;
        max-width: 150px;
    }

    body {
        overflow-y: auto;
    }

    .main-wrapper {
        height: auto;
        min-height: 100vh;
    }
}

.mobile-logo {
    display: none;
}