﻿/* =================================================================
   1. ORİJİNAL MASAÜSTÜ TASARIMI (Muazzam Olan Eski Kodların)
   ================================================================= */
body.auth-page {
    background-image: url('../img/authbackgroundimage2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-page h1 {
    font-weight: bold;
    margin: 0 0 15px 0;
}

.auth-page p {
    font-size: 14px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
}

.auth-page a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    margin: 1px 0;
}

.auth-page button {
    border-radius: 20px;
    border: 1px solid var(--brand-color);
    background-color: var(--brand-color);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    cursor: pointer;
}

    .auth-page button:active {
        transform: scale(0.95);
    }

    .auth-page button:focus {
        outline: none;
    }

    .auth-page button.ghost {
        background-color: transparent;
        border-color: #FFFFFF;
    }

.auth-page form {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}

.sign-up-container form {
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
    overflow-y: auto;
}

    .sign-up-container form::-webkit-scrollbar {
        width: 8px;
    }

    .sign-up-container form::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .sign-up-container form::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

        .sign-up-container form::-webkit-scrollbar-thumb:hover {
            background: var(--brand-color);
        }

.container-custom {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    width: 1200px;
    max-width: 100%;
    min-height: 750px;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container-custom.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container-custom.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.container-custom.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: var(--brand-color);
    background: linear-gradient(to right, var(--brand-gradient-end), var(--brand-gradient-start));
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.container-custom.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-left {
    transform: translateX(-20%);
}

.container-custom.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.container-custom.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.social-container {
    margin: 20px 0;
}

    .social-container a {
        border: 1px solid #DDDDDD;
        border-radius: 50%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin: 0 5px;
        height: 40px;
        width: 40px;
        color: #333;
    }

.section-divider {
    width: 100%;
    text-align: left;
    font-size: 0.75rem;
    font-weight: bold;
    color: #adb5bd;
    border-bottom: 1px solid #eee;
    margin: 15px 0;
    padding-bottom: 5px;
    text-transform: uppercase;
}

.brand-header {
    position: absolute;
    top: 40px;
    left: 50px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 15px;
}

    .brand-header img {
        height: 50px;
        width: auto;
    }

.brand-text {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

    .brand-text h3 {
        margin: 0;
        font-weight: 800;
        font-size: 1.8rem;
        letter-spacing: 1px;
        line-height: 1;
    }

/* Masaüstünde mobil sekmelerini kesinlikle gizle */
.mobile-header-area {
    display: none;
}


/* =================================================================
   2. YENİ MOBİL GÖRÜNÜM (Masaüstünü Bozmadan Sadece Mobili Ezer)
   ================================================================= */
@media (max-width: 768px) {

    body.auth-page {
        height: auto !important;
        overflow-y: auto;
        padding: 0 !important;
        justify-content: flex-start !important;
    }

    /* Masaüstü araçlarını mobilde tamamen sakla */
    .overlay-container, .brand-header {
        display: none !important;
    }

    .auth-page form h2 {
        display: none !important;
    }

    .mobile-header-area {
        display: block;
    }
    /* Üst sekmeleri göster */

    .container-custom {
        width: 100%;
        display: block;
        background: transparent;
        box-shadow: none;
        min-height: auto !important;
    }

    /* SABİT ÜST ALAN (STICKY HEADER) */
    .mobile-header-area {
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
        background-color: rgba(255, 255, 255, 0.95) !important;
        padding-top: 15px;
        padding-bottom: 15px;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .brand-header-mobile {
        margin-top: 0 !important;
    }

    /* Sekmelerin Görünümü */
    .mobile-tabs {
        background-color: #f1f3f5;
        border-radius: 50px;
        margin: 0 10px;
        padding: 5px;
        display: flex;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

        .mobile-tabs .tab-btn {
            flex: 1;
            background: transparent;
            border: none;
            color: #6c757d;
            font-weight: 700;
            padding: 12px 0;
            border-radius: 50px;
            font-size: 0.95rem;
            transition: all 0.3s ease;
        }

            .mobile-tabs .tab-btn.active {
                background: var(--brand-color);
                color: #fff;
            }

    /* FORMLARIN KUTULARI (Masaüstünün absolute değerlerini EZER) */
    .form-container {
        display: none;
        width: 100%;
        position: static !important; /* MASAÜSTÜNÜN HAVADA UÇMASINI MOBİLDE İPTAL EDER */
        transform: none !important; /* MASAÜSTÜNÜN KAYMASINI MOBİLDE İPTAL EDER */
        transition: none !important;
        opacity: 1 !important;
    }

    /* Form İç Tasarımı */
    .auth-page form {
        background-color: #fff !important;
        border-radius: 20px !important;
        padding: 30px 20px !important;
        margin: 0 10px 30px 10px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
        height: auto !important; /* Masaüstünün %100 uzamasını engeller */
    }

    /* GÜVENLİ VE ŞIK GEÇİŞ ANİMASYONU (FADE-UP) */
    @keyframes smoothFadeUp {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* GİRİŞ EKRANI AÇILIRKEN */
    .container-custom:not(.right-panel-active) .sign-in-container {
        display: block;
        animation: smoothFadeUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

    /* KAYIT EKRANI AÇILIRKEN */
    .container-custom.right-panel-active .sign-up-container {
        display: block;
        animation: smoothFadeUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }
}
