/* Auth Page Styles */
:root {
    --primary-color: #2C3639;
    --secondary-color: #A27B5C;
    --accent-color: #DCD7C9;
    --text-color: #3F4E4F;
    --bg-color: #f8f9fa;
    --input-bg: #f4f4f4;
    --border-color: #e0e0e0;
    --error-color: #dc3545;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Force Header Background and Height on Auth Page */
.header {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 120px !important;
    /* Force sticky height */
}

.logo img {
    height: 90px !important;
    /* Force sticky logo size */
}

/* 
   DESKTOP LAYOUT (Default) 
   Split Screen: Left Form (50%), Right Image (50%)
*/
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    padding-top: 140px;
    /* Header height adjustment */
    background-color: #fff;
}

/* Remove the overlay from desktop container */
.auth-container::before {
    display: none;
}

/* Left Side - Form Area */
.auth-form-side {
    width: 50%;
    padding: 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
    position: relative;
    z-index: 1;
}

/* Right Side - Image Area */
.auth-image-side {
    width: 50%;
    display: block;
    background-image: url('../images/anasayfa-4.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.auth-image-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
}

.auth-header {
    margin-bottom: 40px;
    text-align: left;
    /* Left align for desktop split */
}

.auth-logo {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: left;
    /* Left align for desktop split */
}

/* 
   MOBILE/RESPONSIVE LAYOUT (max-width: 991px)
   Centered Card with Full Background Image
*/
@media (max-width: 991px) {
    .auth-container {
        padding-top: 100px;
        padding-bottom: 40px;
        justify-content: center;
        align-items: flex-start;
        /* Allow scrolling */
        background-image: url('../images/anasayfa-4.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        position: relative;
    }

    /* Add overlay back for mobile */
    .auth-container::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(8px);
        z-index: 0;
    }

    .auth-form-side {
        width: 90%;
        max-width: 500px;
        padding: 40px;
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
        margin: 20px auto;
        align-items: stretch;
    }

    .auth-image-side {
        display: none;
    }

    .auth-header,
    .auth-title {
        text-align: center;
    }
}

/* Form Styles (Common) */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    color: var(--primary-color);
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(162, 123, 92, 0.1);
}

.form-control::placeholder {
    color: #aaa;
    font-weight: 300;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    font-size: 16px;
}

/* Checkbox & Links */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: #eee;
    margin-right: 8px;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.custom-checkbox:hover input~.checkmark {
    background-color: #ddd;
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--secondary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn-auth {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(44, 54, 57, 0.2);
}

.btn-auth:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(162, 123, 92, 0.3);
}

.btn-auth.active {
    background-color: var(--primary-color);
}

.btn-auth.active:hover {
    background-color: var(--secondary-color);
}

/* Social Login */
.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.social-label::before,
.social-label::after {
    content: "";
    display: block;
    height: 1px;
    background: #eee;
    flex: 1;
}

.btn-google {
    width: 100%;
    padding: 12px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.btn-google:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
    transform: translateY(-1px);
}

.btn-google img,
.btn-google i {
    margin-right: 10px;
    font-size: 18px;
}

/* Footer Links */
.auth-footer {
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-color);
    text-align: center;
}

.auth-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Error Message */
.error-message {
    background-color: #ffebee;
    color: var(--error-color);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
    border-left: 4px solid var(--error-color);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Small Mobile Adjustments */
@media (max-width: 576px) {
    .auth-form-side {
        padding: 30px 20px;
        margin: 10px;
    }

    .auth-title {
        font-size: 28px;
    }
}