/* ==========================================================================
   Duru Flora Auth Pages Styles (Login, Register, Forgot Password)
   ========================================================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #F7F4EE;
    margin: 0;
    padding: 0;
    color: #1e293b;
}

.auth-page-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex: 1;
    min-height: 100vh;
    height: auto;
    position: relative;
    background-color: #F7F4EE;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.auth-inner-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    background-color: #F7F4EE;
}

/* Background image with soft organic vignette blending seamlessly into cream background */
.auth-full-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    filter: brightness(0.98);
}

/* Seamless blend overlays at top and bottom: completely eliminates harsh photo cuts */
.auth-inner-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(247, 244, 238, 0.96) 0%,
        rgba(247, 244, 238, 0.65) 10%,
        rgba(247, 244, 238, 0.2) 25%,
        rgba(247, 244, 238, 0.2) 75%,
        rgba(247, 244, 238, 0.7) 90%,
        rgba(247, 244, 238, 0.98) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Merkez Dikey Panel */
.auth-form-side {
    position: relative;
    z-index: 10;
    background-color: rgba(247, 244, 238, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 36%;
    min-width: 420px;
    max-width: 490px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* İç Beyaz Kart */
.auth-container {
    background-color: #ffffff;
    padding: 36px 36px 32px 36px;
    border-radius: 18px;
    border: 1px solid rgba(44, 76, 59, 0.08);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Logo Link: Tıklanınca ana sayfaya yönlendirir */
.auth-logo-wrapper {
    text-align: center;
    margin-bottom: 2px;
}

.auth-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    outline: none;
}
.auth-logo-link:hover {
    transform: scale(1.02);
    opacity: 0.95;
}
.auth-logo-link .df-logo {
    pointer-events: none;
    width: 190px;
    height: auto;
}

h2 {
    color: var(--forest, #2F4F3A);
    text-align: center;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #2F4F3A;
    box-shadow: 0 0 0 3px rgba(47, 79, 58, 0.12);
}

/* Beni Hatırla & Şifremi Unuttum Barı */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    margin-top: 8px;
    width: 100%;
    font-size: 13px;
}

.auth-remember-label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

/* Checkbox boyutunu ve görünümünü kibar yap */
.auth-checkbox,
.auth-container input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    accent-color: #2F4F3A !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.form-options a {
    color: #2F4F3A;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.15s ease;
}

.form-options a:hover {
    color: #1e3526;
    text-decoration: underline;
}

.btn {
    width: 100%;
    padding: 14px;
    background-color: #2F4F3A;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.15s;
}

.btn:hover {
    background-color: #243e2d;
    transform: translateY(-1px);
}

.error {
    color: #dc2626;
    text-align: center;
    margin-bottom: 14px;
    font-size: 13px;
    background: #fef2f2;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #fecaca;
    width: 100%;
    box-sizing: border-box;
}

.success {
    color: #166534;
    text-align: center;
    margin-bottom: 14px;
    font-size: 13px;
    background: #f0fdf4;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
    width: 100%;
    box-sizing: border-box;
}

/* ── Mobile Uyarlamaları ── */
@media (max-width: 900px) {
    .auth-page-wrapper {
        min-height: 100vh;
        height: auto;
        padding: 24px 16px 36px !important;
        overflow-y: auto !important;
        background-color: #F7F4EE;
    }
    
    .auth-inner-wrapper {
        align-items: center;
        background-color: transparent;
    }

    .auth-form-side {
        width: 100% !important;
        max-width: 420px !important;
        min-width: 0 !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .auth-container {
        padding: 28px 22px 24px !important;
        border-radius: 18px !important;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08) !important;
        background-color: #ffffff !important;
    }

    .auth-full-bg {
        opacity: 0.22;
        filter: blur(2px);
    }
}
