/* DAVANETTE — çift panelli giriş/kayıt (akış: form action'ları ayrı kalır) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

.auth-page {
    --auth-accent: #c9a962;
    --auth-accent-deep: #a8883e;
    --auth-accent-soft: #dbbc74;
    --auth-ink: #222;
    --auth-muted: #666;
    --auth-panel: #ffffff;
    --auth-input: #eee;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    background: url("../sayfa.jpg") no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', 'Manrope', 'Segoe UI', sans-serif;
    color: var(--auth-ink);
}

.auth-page nav {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.5rem;
    background: rgba(8, 10, 14, 0.92);
    z-index: 1000;
    min-height: 64px;
}

.auth-page .nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.auth-page .nav-link {
    color: #c8c2b6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 6px;
}

.auth-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 2.5rem;
    width: 100%;
}

.auth-stage-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--auth-accent);
    margin: 0 0 1.1rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.auth-container {
    background: var(--auth-panel);
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28), 0 10px 10px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 860px;
    min-height: 520px;
}

.auth-container .form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.auth-container .sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.auth-container .sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.auth-container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.auth-container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: authShow 0.6s;
}

@keyframes authShow {
    0%, 49.99% { opacity: 0; z-index: 1; }
    50%, 100% { opacity: 1; z-index: 5; }
}

.auth-container form {
    background: var(--auth-panel);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.35rem;
    height: 100%;
    text-align: center;
    overflow-y: auto;
    box-sizing: border-box;
}

.auth-container h1 {
    font-weight: 700;
    margin: 0 0 0.25rem;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    color: #1a1a1a;
    letter-spacing: -0.01em;
    line-height: 1.25;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.auth-container span.auth-hint {
    font-size: 11px;
    color: var(--auth-muted);
    margin: 0.35rem 0 0.55rem;
    max-width: 100%;
    line-height: 1.35;
}

.auth-container .auth-note {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--auth-accent-deep);
    background: rgba(201, 169, 98, 0.12);
    border: 1px solid rgba(201, 169, 98, 0.35);
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    margin: 0 0 0.75rem;
    width: 100%;
    text-align: left;
}

.auth-container input {
    background: var(--auth-input);
    border: none;
    border-radius: 6px;
    padding: 11px 12px;
    margin: 5px 0;
    width: 100%;
    max-width: 100%;
    font-size: 0.86rem;
    font-family: inherit;
    color: var(--auth-ink);
    box-sizing: border-box;
}

.auth-container input:focus {
    outline: 2px solid rgba(201, 169, 98, 0.55);
    outline-offset: 1px;
    background: #f3f3f3;
}

.auth-container input::placeholder {
    color: #888;
}

.auth-container a.auth-link {
    color: #333;
    font-size: 13px;
    text-decoration: none;
    margin: 12px 0 6px;
    transition: color 0.2s ease;
}

.auth-container a.auth-link:hover {
    color: var(--auth-accent-deep) !important;
    text-decoration: underline;
}

.auth-btn {
    border-radius: 24px;
    border: 1px solid var(--auth-accent);
    background: linear-gradient(90deg, var(--auth-accent-deep), var(--auth-accent));
    color: #111 !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 11px 28px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.25s ease, box-shadow 0.25s ease;
    font-family: inherit;
    max-width: 100%;
    white-space: nowrap;
}

.auth-btn:hover {
    background: linear-gradient(90deg, var(--auth-accent), var(--auth-accent-soft)) !important;
}

.auth-btn:active {
    transform: scale(0.95);
}

.auth-btn:focus {
    outline: none;
}

.auth-btn.ghost {
    background: transparent !important;
    border-color: #ffffff;
    color: #ffffff !important;
}

.auth-btn.ghost:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

.auth-errors {
    width: 100%;
    margin-top: 0.65rem;
    text-align: left;
}

.auth-errors .error-message {
    color: #c0392b;
    font-size: 0.8rem;
    margin: 0.2rem 0;
    line-height: 1.35;
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.auth-container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: linear-gradient(to right, #8f7340, #c9a962);
    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;
}

.auth-container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
    box-sizing: border-box;
}

.overlay-panel h1 {
    color: #fff;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    margin: 0 0 0.35rem;
    line-height: 1.25;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.overlay-panel p {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: 0.2px;
    margin: 10px 0 18px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 100%;
}

.overlay-left {
    transform: translateX(-20%);
}

.auth-container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.auth-container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.auth-mobile-switch {
    display: none;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #e8e4dc;
}

.auth-mobile-switch a {
    color: var(--auth-accent-deep);
    font-weight: 700;
    text-decoration: none;
}

.auth-mobile-switch a:hover {
    text-decoration: underline;
}

.auth-page .site-footer-corner {
    color: rgba(232, 228, 220, 0.9);
}

.auth-page .site-footer-corner:hover {
    color: var(--auth-accent-soft);
}

/* Mobil/tablet: tek kolon form + brand.css padding çakışmasını gider */
@media (max-width: 900px) {
    body.auth-page {
        padding-top: 0 !important;
        background-attachment: scroll !important;
    }

    .auth-page nav {
        position: sticky;
        top: 0;
        flex-wrap: wrap;
        gap: 0.4rem 0.5rem;
        padding: 0.65rem 0.85rem !important;
        min-height: auto !important;
    }

    .auth-page .nav-left {
        flex: 0 1 auto;
        min-width: 0;
    }

    .auth-page .nav-right {
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 0.25rem 0.35rem !important;
        max-width: 100%;
    }

    .auth-page .nav-link {
        font-size: 0.75rem !important;
        padding: 0.28rem 0.4rem !important;
    }

    .auth-stage {
        justify-content: flex-start;
        padding: 1rem 0.85rem 3.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .auth-stage-title {
        display: none;
    }

    .auth-container {
        min-height: 0 !important;
        height: auto !important;
        max-width: 480px;
        width: 100%;
        overflow: visible;
        border-radius: 14px;
    }

    .auth-container .form-container,
    .auth-container .sign-in-container,
    .auth-container .sign-up-container {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        opacity: 1 !important;
        z-index: 1 !important;
        animation: none !important;
        padding: 0 !important;
    }

    .auth-container:not(.right-panel-active) .sign-in-container {
        display: block !important;
    }

    .auth-container:not(.right-panel-active) .sign-up-container {
        display: none !important;
    }

    .auth-container.right-panel-active .sign-in-container {
        display: none !important;
    }

    .auth-container.right-panel-active .sign-up-container {
        display: block !important;
    }

    .auth-container form {
        padding: 1.5rem 1.15rem 1.35rem !important;
        height: auto !important;
        min-height: 0;
        overflow: visible;
        justify-content: flex-start;
    }

    .auth-container h1 {
        font-size: 1.35rem;
    }

    .auth-container input {
        font-size: 16px; /* iOS zoom engeli */
        padding: 0.85rem 0.9rem;
        margin: 0.35rem 0;
    }

    .auth-container a.auth-link {
        margin: 0.65rem 0 0.25rem;
    }

    .auth-btn {
        width: 100%;
        max-width: 100%;
        padding: 0.9rem 1rem;
        white-space: normal;
        line-height: 1.3;
    }

    .auth-container .auth-note {
        font-size: 0.78rem;
        padding: 0.5rem 0.65rem;
    }

    .overlay-container {
        display: none !important;
    }

    .auth-mobile-switch {
        display: block;
        width: 100%;
        max-width: 480px;
        margin-top: 1.1rem;
        padding: 0 0.25rem;
        box-sizing: border-box;
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .auth-mobile-switch a {
        color: var(--auth-accent-soft);
    }
}

@media (max-width: 640px) {
    body.auth-page {
        padding-top: 0 !important;
    }

    .auth-stage {
        padding: 0.85rem 0.7rem 3.75rem;
    }

    .auth-container form {
        padding: 1.25rem 1rem 1.15rem !important;
    }

    .auth-container h1 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .auth-page nav {
        padding: 0.55rem 0.6rem !important;
    }

    .auth-page .nav-link {
        font-size: 0.72rem !important;
        padding: 0.25rem 0.35rem !important;
    }

    .auth-btn {
        font-size: 0.78rem;
        letter-spacing: 0.04em;
    }
}
