* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('niyaz.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: -1;
}

.container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.container > * {
    max-width: 450px;
}

/* Sol taraf - Resim */
.image-side {
    width: 450px;
    height: 550px;
    position: relative;
    background-image: url('niyaz.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 0 0 20px;
}

/* Sağ taraf - Form */
.form-side {
    width: 450px;
    height: 550px;
    display: flex;
    flex-direction: column;
    padding: 0;
    background-color: #ffffff;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Dil Seçici - En Üstte */
.language-selector {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
    position: relative;
    z-index: 1000;
}

.form-container {
    width: 100%;
    max-width: 370px;
    padding: 24px 40px 40px 40px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    max-height: calc(550px - 60px);
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.language-btn:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.language-btn .current-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.language-btn .current-lang {
    color: #374151;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.language-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    overflow: hidden;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.language-option img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.language-option:hover {
    background: #f1f5f9;
}

.language-option.selected {
    background: #e0e7ff;
    font-weight: 600;
}

.form-container h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.subtitle {
    color: #64748b;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

.form-group input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background-color: #ffffff;
}

.form-group input::placeholder {
    color: #94a3b8;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #4f46e5;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: #64748b;
    gap: 8px;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-container input:checked + .checkmark {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.checkbox-container input:checked + .checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.forgot-password {
    font-size: 0.875rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #4338ca;
}

.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #1B4D3E 0%, #2D6A4F 100%);
    color: #D4A017;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(27, 77, 62, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27, 77, 62, 0.5);
    background: linear-gradient(135deg, #2D6A4F 0%, #1B4D3E 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.signup-link {
    text-align: center;
    margin-top: 24px;
    color: #64748b;
    font-size: 0.9375rem;
}

.signup-link a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Info Text */
.info-text {
    font-size: 0.8125rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f0fdf4;
    border-radius: 8px;
    border-left: 3px solid #10b981;
    line-height: 1.5;
}

/* Form Container Transitions */
#loginFormContainer,
#registerFormContainer,
#forgotPasswordContainer {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#loginFormContainer,
#registerFormContainer,
#forgotPasswordContainer[style*="display: block"] {
    animation: fadeIn 0.4s ease-out;
}

/* Scrollbar styling */
.form-container::-webkit-scrollbar {
    width: 6px;
}

.form-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.form-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.form-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 20px;
    }
    
    .image-side {
        display: none;
    }
    
    .form-side {
        border-radius: 20px;
        width: 100%;
        max-width: 450px;
        height: auto;
        min-height: 550px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0;
    }
    
    .form-side {
        padding: 30px 24px;
        min-height: 100vh;
        border-radius: 0;
    }
    
    .form-container h2 {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container {
    animation: fadeIn 0.5s ease-out;
}

/* Input focus animasyonu */
.form-group input:focus {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
    100% {
        transform: scale(1);
    }
}
