﻿:root {
    --primary-color: #3D9970;
    --text-color: #181c32;
    --light-text: #a1a5b7;
    --background-color: #f5f8fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--background-color);
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Left Section Styles */
.left-section {
    flex: 1;
    background-color: var(--primary-color);
    padding: 3rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand {
    margin-bottom: 2rem;
}

.logo {
    
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Right Section Styles */
.right-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e4e6ef;
    border-radius: 0.475rem;
    font-size: 1.1rem;
    display: block;
    width: 100%;
    padding: 0.775rem 1rem;
    font-weight: 500;
    line-height: 1.5;
    background-clip: padding-box;
    border-radius: 0.475rem;
    box-shadow: false;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    input:focus {
        outline: none;
        border-color: var(--primary-color);
    }

.forgot-password {
    text-align: right;
    margin-bottom: 1.5rem;
}

    .forgot-password a {
        color: var(--primary-color);
        text-decoration: none;
    }

.sign-in-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.475rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .sign-in-btn:hover {
        background-color: #238659;
    }

.sign-up {
    text-align: center;
    margin-top: 2rem;
    color: var(--light-text);
}

    .sign-up a {
        color: var(--primary-color);
        text-decoration: none;
    }

.footer {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flag-icon {
    width: 20px;
    height: 15px;
}

select {
    border: none;
    background: none;
    color: var(--light-text);
    cursor: pointer;
}

.links {
    display: flex;
    gap: 1rem;
}

    .links a {
        color: var(--light-text);
        text-decoration: none;
        font-size: 0.9rem;
    }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-section {
        padding: 0rem;
        text-align: center;
        min-height: auto;
    }

        /* Mobil görünümde başlık ve açıklamayı gizle */
        .left-section h1,
        .left-section .description {
            display: none;
        }

    /* Logo için özel düzenleme */
    .brand {
        margin: 1rem 0;
    }

    .right-section {
        padding: 1rem;
        flex: auto;
    }

    .login-container {
        padding: 1rem;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        height: 50px;
    } 
}

/* language-dropdown */
.language-selector {
    position: relative;
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.language-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #5E6278;
    font-size: 14px;
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

/* Arrow icon styles */
.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    fill: currentColor;
}

/* Rotate arrow when dropdown is open */
.language-selector.open .arrow-icon {
    transform: rotate(180deg);
}

.language-dropdown-content {
    display: none;
    position: absolute;
    bottom: 100%; /* Changed from top to bottom */
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 50px 0 rgba(82, 63, 105, 0.15);
    padding: 8px 0;
    margin-bottom: 8px; /* Changed from margin-top */
    min-width: 150px;
    z-index: 1000;
}

/* When dropdown is open */
.language-selector.open .language-dropdown-content {
    display: block;
    animation: dropupAnimation 0.2s ease-out;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .dropdown-item:hover {
        background-color: #E9F2FF !important; /* Updated hover color */
    }

    /* Active/selected state */
    .dropdown-item.active {
        background-color: #E9F2FF;
        color: #009EF7;
    }

/* Dropup animation */
@keyframes dropupAnimation {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dropdown-item a {
    text-decoration: none;
    display: contents;
    color: #181c32;
}

/* Error Display */
.form-group {
    position: relative;
    margin-bottom: 30px;
}

    .form-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid #e1e1e1;
        border-radius: 6px;
        font-size: 14px;
        transition: border-color 0.3s;
    }

        .form-group input:focus {
            outline: none;
            border-color: #47b589;
        }

.validation-error {
    display: none;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    margin-left: 2px;
    position: absolute;
    animation: fadeIn 0.2s ease-in;
}

    .validation-error::before {
        content: "- ";
        color: #e74c3c;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hata durumunda input stil değişimi */
.form-group input.has-error {
    border-color: #e74c3c;
}