/* Bu dosya tüm sayfalarda kullanılan renk, düzen ve bileşen stilini tanımlar. */
:root {
    --bubblegum: #FF8FAB;
    --bubblegum-light: #FFD6E2;
    --bubblegum-soft: #FFF0F5;
    --sky: #74C7EC;
    --sky-light: #D6F0FC;
    --sky-soft: #EEF8FE;
    --mint: #7EDBA5;
    --mint-light: #C8F0DA;
    --mint-soft: #EEFAF3;
    --sun: #FFD166;
    --sun-light: #FFF3C4;
    --sun-soft: #FFFBEC;
    --lavender: #B09FE8;
    --lavender-light: #E2DCFA;
    --lavender-soft: #F4F1FD;
    --peach: #FFB085;
    --peach-light: #FFE3CC;
    --peach-soft: #FFF6EE;
    --white: #FFFFFF;
    --bg: #FFF8FA;
    --text: #3D2C35;
    --text-soft: #8A6878;
    --text-light: #C4A8B8;
    --border: #FAE8EF;
    --shadow: 0 6px 28px rgba(255, 143, 171, 0.15);
    --shadow-hover: 0 14px 40px rgba(255, 143, 171, 0.25);
    --shadow-xl: 0 20px 60px rgba(255, 143, 171, 0.2);
    --radius: 20px;
    --radius-sm: 14px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --radius-full: 50px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 20px;
    --spacing-xl: 28px;
    --spacing-2xl: 36px;
    --spacing-3xl: 48px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* ── GENEL SIFIRLAMA VE KUTU MODELI ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Auth sayfaları için split-screen flex düzeni - Giriş ve Kayıt sayfaları */
body.login-page,
body.register-page {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}
/* ═══════════════════════════════════════════════════════════
   BEBEĞİM BÜYÜYOR - PREMIUM LOGIN PAGE STYLES
   Modern, cinematic split-screen design (matching main site)
   ═══════════════════════════════════════════════════════════ */

/* ── LOGIN PAGE STYLES ── */
/* ── LAYOUT: SPLIT SCREEN ── */
.visual-side {
    width: 58%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, var(--bubblegum-soft) 0%, var(--bg) 40%, var(--sky-soft) 100%);
}

/* Video background */
.visual-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Background image with blur effect (fallback) */
.visual-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/login-baby1.jpg');
    background-size: cover;
    background-position: center 30%;
    filter: blur(3px);
    transform: scale(1.05);
    opacity: 0.85;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(255, 143, 171, 0.2) 0%,
            rgba(116, 199, 236, 0.3) 50%,
            rgba(126, 219, 165, 0.3) 100%);
    z-index: 1;
}

.visual-content {
    position: relative;

    z-index: 2;
    padding: var(--spacing-3xl);
    max-width: 800px;
    animation: fadeSlideIn 1s ease-out;
}


/* ── VISUAL SIDE TEXT ── */
.visual-text h1 {
    font-family: 'Baloo 2', cursive;
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    font-family: 'Baloo 2', cursive;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.visual-text p {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 420px;
}

/* ── DECORATIVE ELEMENTS ── */
.visual-decorative {
    position: absolute;
    bottom: 60px;
    left: 60px;
}

.decor-circle {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
}

.decor-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.decor-line {
    position: absolute;
    top: 50%;
    left: 120px;
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
}

/* ── PREMIUM SAG TARAF STILLERI ── */

/* Side dekoratif arkaplan */
.side-decor {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 143, 171, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.side-decor.top-right {
    top: -80px;
    right: -80px;
}

.side-decor.bottom-left {
    bottom: -80px;
    left: -80px;
}

/* Uçan ikonlar */
.floating-icon {
    position: absolute;
    font-size: 24px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

.floating-icon.icon-baby { animation-delay: 0s; }
.floating-icon.icon-heart { animation-delay: 1.5s; }
.floating-icon.icon-star { animation-delay: 3s; }
.floating-icon.icon-flower { animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* Panel badge - üst rozet */
.panel-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, var(--bubblegum), #FF6B95);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 4px 15px rgba(255, 107, 149, 0.3);
}

.panel-badge i {
    font-size: 14px;
}

/* Avatar dairesi */
.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bubblegum-soft), var(--sky-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    border: 3px solid var(--white);
    box-shadow: 0 4px 20px rgba(255, 143, 171, 0.25);
    overflow: hidden;
}

.avatar-circle img {
    width: 60px;
    height: auto;
}

.avatar-circle i {
    font-size: 32px;
    color: var(--bubblegum);
}

/* Alert */
.alert {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.alert-error {
    background: #FFF0F0;
    color: #E74C3C;
    border: 1px solid #FFD6D6;
}

.alert-error i {
    font-size: 16px;
}

/* ── LOGIN SIDE ── */
.login-side {
    width: 42%;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bubblegum-soft) 100%);
    padding: var(--spacing-xl);
    position: relative;
}

.register-side {
    width: 42%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bubblegum-soft) 100%);
    padding: var(--spacing-xl);
    position: relative;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

/* ── LOGIN PANEL ── */
.login-panel {
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 38px;
    padding: 30px 34px;
    box-shadow: 0 20px 50px rgba(255, 143, 171, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.55);
    animation: fadeSlideUp 0.8s ease-out 0.2s both;
    position: relative;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ── LOGIN HEADER ── */
.login-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.login-header h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: var(--spacing-xs);
}

.login-header .subtitle {
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 500;
}

/* ── FORM STYLES ── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i:first-child {
    position: absolute;
    left: var(--spacing-md);
    color: var(--text-soft);
    font-size: 16px;
    transition: color var(--transition-normal);
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 44px 14px 42px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: all var(--transition-normal);
}

.input-wrapper input::placeholder {
    color: var(--text-light);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--bubblegum);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--bubblegum-soft);
}

.input-wrapper input:focus+i,
.input-wrapper:focus-within i:first-child {
    color: var(--bubblegum);
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-soft);
    cursor: pointer;
    padding: 6px;
    transition: color var(--transition-normal);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.toggle-password:hover {
    color: var(--bubblegum);
}

.toggle-password-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-soft);
    z-index: 1;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.toggle-password-btn:hover {
    color: var(--bubblegum);
}

/* ── FORM OPTIONS ── */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.checkbox-wrapper input:checked+.checkmark {
    background: var(--bubblegum);
    border-color: var(--bubblegum);
}

.checkbox-wrapper input:checked+.checkmark::after {
    content: '✓';
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.label-text {
    font-size: 14px;
    color: var(--text-soft);
}

.forgot-link {
    font-size: 14px;
    color: var(--bubblegum);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.forgot-link:hover {
    color: var(--sky);
}

/* ── PRIMARY BUTTON ── */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 16px var(--spacing-lg);
    background: linear-gradient(135deg, var(--bubblegum), #FF6B95);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 800;
    font-family: 'Baloo 2', cursive;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 28px rgba(255, 107, 149, 0.35);
    margin-top: var(--spacing-sm);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(255, 107, 149, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary i {
    font-size: 14px;
    transition: transform var(--transition-normal);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

/* ── SOSYAL GIRIS ── */
.social-login {
    margin-top: var(--spacing-lg);
}

.divider-text {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

.divider-text span {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.btn-social {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 18px;
    color: var(--text-soft);
}

.btn-social:hover {
    border-color: var(--bubblegum-light);
    background: var(--bubblegum-soft);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 143, 171, 0.2);
}

.btn-google:hover { color: #DB4437; }
.btn-facebook:hover { color: #1877F2; }
.btn-apple:hover { color: #000; }

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ── SIGNUP LINK ── */
.signup-link {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.signup-link p {
    font-size: 14px;
    color: var(--text-soft);
}

.signup-link a {
    color: var(--bubblegum);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.signup-link a:hover {
    color: var(--sky);
}

.signup-link a i {
    font-size: 12px;
    margin-left: 2px;
}

/* ── LOGIN LINK (register sayfası) ── */
.login-link {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.login-link p {
    font-size: 14px;
    color: var(--text-soft);
}

.login-link a {
    color: var(--bubblegum);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.login-link a:hover {
    color: var(--sky);
}

.login-link a i {
    font-size: 12px;
    margin-left: 3px;
}

/* ── FOOTER LINKS ── */
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border);
}

.footer-links a {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--bubblegum);
}

.footer-links span.dot {
    color: var(--border);
    font-size: 8px;
}

/* ── ANIMATIONS FOR LOGIN ── */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── RESPONSIVE DESIGN FOR LOGIN ── */
@media (max-width: 1200px) {
    .visual-side {
        width: 55%;
    }

    .login-side {
        width: 45%;
    }

    .visual-text h1 {
        font-size: 40px;
    }
}

@media (max-width: 1024px) {
    .visual-side {
        width: 50%;
    }

    .login-side {
        width: 50%;
    }

    .visual-content {
        padding: var(--spacing-xl);
    }

    .visual-text h1 {
        font-size: 36px;
    }

    .visual-text p {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        flex-direction: column;
    }

    .visual-side {
        width: 100%;
        height: 45vh;
        min-height: 400px;
    }

    .visual-content {
        padding: var(--spacing-xl);
    }

    .visual-text h1 {
        font-size: 32px;
    }

    .visual-decorative {
        display: none;
    }

    .login-side {
        width: 100%;
        height: auto;
        min-height: calc(100vh - 45vh);
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

    .register-side {
        width: 100%;
        height: auto;
        min-height: calc(100vh - 45vh);
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

    .login-panel {
        max-width: 420px;
        padding: var(--spacing-xl);
    }

    .mobile-logo {
        display: block;
    }

}

@media (max-width: 480px) {
    .visual-side {
        height: 35vh;
        min-height: 300px;
    }

    .visual-text h1 {
        font-size: 26px;
    }

    .visual-text p {
        font-size: 14px;
    }

    .login-panel {
        padding: var(--spacing-lg);
        border-radius: var(--radius-lg);
    }

    .register-panel {
        padding: var(--spacing-lg);
        border-radius: var(--radius-lg);
    }

    .login-header h2 {
        font-size: 26px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .floating-icon {
        display: none;
    }
}

/* ── GLASSMORPHISM ACCENTS ── */
.visual-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 143, 171, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ── LOADING STATE ── */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-primary.loading span {
    visibility: hidden;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ── ERROR STATE ── */
.form-group.error .input-wrapper input {
    border-color: #FF6B6B;
}

.form-group.error .input-wrapper input:focus {
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
}

.error-message {
    font-size: 12px;
    color: #FF6B6B;
    margin-top: var(--spacing-xs);
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* ── SUCCESS STATE ── */
.form-group.success .input-wrapper input {
    border-color: var(--mint);
}

/* ═══════════════════════════════════════════════════════════
   BEBEĞİM BÜYÜYOR - PREMIUM REGISTER PAGE STYLES
   ═══════════════════════════════════════════════════════════ */

.register-container {
    width: 100%;
    max-width: 520px;
}

.register-scroll {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding-right: var(--spacing-sm);
}

.register-scroll::-webkit-scrollbar {
    width: 6px;
}

.register-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.register-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}

.register-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--bubblegum-light);
}

/* ── REGISTER PANEL ── */
.register-panel {
    max-width: 400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 38px;
    padding: 30px 34px;
    box-shadow: 0 20px 50px rgba(255, 143, 171, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.55);
    animation: fadeSlideUp 0.8s ease-out 0.2s both;
    position: relative;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ── REGISTER HEADER ── */
.register-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.register-header h2 {
    font-family: 'Baloo 2', cursive;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: var(--spacing-xs);
}

.register-header .subtitle {
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 500;
}

/* ── REGISTER FORM STYLES ── */
.register-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.register-form .form-group select {
    width: 100%;
    padding: 14px 40px 14px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: all var(--transition-normal);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A6878' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.register-form .form-group select:focus {
    outline: none;
    border-color: var(--bubblegum);
    background-color: var(--white);
    box-shadow: 0 0 0 4px var(--bubblegum-soft);
}

/* ── PASSWORD STRENGTH ── */
.password-strength {
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin-top: var(--spacing-xs);
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

/* ── CHECKBOX GROUP ── */
.checkbox-group {
    margin-top: var(--spacing-xs);
}

.checkbox-group .label-text {
    font-size: 13px;
}

.checkbox-group .label-text a {
    color: var(--bubblegum);
    font-weight: 600;
    text-decoration: none;
}

.checkbox-group .label-text a:hover {
    text-decoration: underline;
}

/* ── RESPONSIVE DESIGN FOR REGISTER ── */
@media (max-width: 1200px) {
    .visual-side {
        width: 55%;
    }

    .register-side {
        width: 45%;
    }
}

@media (max-width: 1024px) {
    .visual-side {
        width: 50%;
    }

    .register-side {
        width: 50%;
    }
}

@media (max-width: 900px) {

    .login-page,
    .register-page {
        overflow: auto;
        flex-direction: column;
        height: auto;
    }

    .visual-side {
        width: 100%;
        height: 45vh;
        min-height: 400px;
    }

    .register-side {
        width: 100%;
        height: auto;
        min-height: calc(100vh - 45vh);
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

    .register-container {
        max-width: 480px;
    }

    .register-panel {
        max-width: 480px;
    }

    .mobile-logo {
        display: block;
    }


}

@media (max-width: 480px) {
    .visual-side {
        height: 35vh;
        min-height: 300px;
    }

    .register-panel {
        padding: var(--spacing-lg);
        border-radius: var(--radius-lg);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .register-header h2 {
        font-size: 26px;
    }

    .floating-icon {
        display: none;
    }

}

/* ── ERROR STATE FOR REGISTER ── */
.register-form .form-group.error .input-wrapper input,
.register-form .form-group.error select {
    border-color: #FF6B6B;
}

.register-form .form-group.error .input-wrapper input:focus,
.register-form .form-group.error select:focus {
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
}

.register-form .form-group.error .error-message {
    font-size: 12px;
    color: #FF6B6B;
    margin-top: var(--spacing-xs);
    display: block;
}

/* ── SUCCESS STATE FOR REGISTER ── */
.register-form .form-group.success .input-wrapper input {
    border-color: var(--mint);
}

/* ═══════════════════════════════════════════════════════════
   TELEFON / MOBİL İYİLEŞTİRMELERİ (LOGIN + REGISTER)
   Küçük ekranlarda formların tam görünmesini sağlar,
   video bölümünü dengeler ve taşmaları engeller.
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    /* Video bölümü dengelensin, form öne çıksın */
    .visual-side {
        height: 34vh;
        min-height: 260px;
        max-height: 340px;
    }

    .visual-content {
        padding: var(--spacing-lg);
    }

    .visual-text h1 {
        font-size: 24px;
    }

    .visual-text p {
        font-size: 14px;
    }

    .login-side,
    .register-side {
        padding: var(--spacing-xl) var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .login-side,
    .register-side {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    /* Panel kenarlara yapışık olmasın */
    .login-panel,
    .register-panel {
        padding: var(--spacing-xl);
    }

    /* Kayıt sayfasında iç scroll yerine normal sayfa akışı (tam form görünür) */
    .register-scroll {
        max-height: none;
        height: auto;
        overflow: visible;
    }

    .register-scroll::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 400px) {
    .visual-side {
        height: 30vh;
        min-height: 220px;
        max-height: 280px;
    }

    .visual-text h1 {
        font-size: 21px;
    }

    .visual-text p {
        font-size: 13px;
    }

    .login-panel,
    .register-panel {
        padding: var(--spacing-lg);
    }

    .login-header h2,
    .register-header h2 {
        font-size: 22px;
    }

    .btn-primary {
        font-size: 14px;
        padding: 13px 18px;
    }

    .email-footer {
        font-size: 12px;
    }
}
/* ═══════════════════════════════════════════════════════════
   MOBİL: DİKEY SOLUK VİDEO ARKA PLANI (LOGIN + REGISTER)
   Telefonlarda sol taraftaki video kutusu kaldırılır; video
   form panelinin ARKASINDA sabit, dikey kesitte ve soluk bir
   arka plan olarak oynar.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

    body.login-page,
    body.register-page {
        position: relative;
    }

    /* Video kutusunu tam ekran sabit arka plana çevir */
    .visual-side {
        position: fixed;
        inset: 0;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        z-index: 0;
        background: linear-gradient(160deg, var(--bubblegum-soft) 0%, var(--bg) 40%, var(--sky-soft) 100%);
    }

    /* Videoyu dikey kesitte doldur, soluklaştır ve yumuşat */
    .visual-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.35;
        filter: blur(2px) saturate(1.1);
        transform: scale(1.06);
    }

    /* Video üzeri yumuşak açık ton */
    .visual-overlay {
        background: linear-gradient(180deg,
            rgba(255, 143, 171, 0.10) 0%,
            rgba(116, 199, 236, 0.18) 100%);
        opacity: 1;
    }

    /* Metin / dekoratif alan arka planda gereksiz, gizle */
    .visual-content,
    .visual-text,
    .visual-decorative {
        display: none;
    }

    /* Form tarafını arka planın üzerine taşı ve tam ortala */
    .login-side,
    .register-side {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100vh;
        height: 100dvh; /* Mobil tarayıcı çubuklarına göre gerçek yükseklik */
        min-height: 0;
        padding: var(--spacing-xl) var(--spacing-lg);
        background: transparent; /* Arkadaki videoyu görünür kılar */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Konteynerler de tam ortalansın, taşmaya izin ver */
    .login-container,
    .register-container {
        margin: 0 auto;
        width: 100%;
    }

    /* Kayıt formu uzunsa içinde kaydırabilsin (dikey) */
    .register-side {
        justify-content: flex-start;
        overflow-y: auto;
    }

    .register-side .register-container {
        margin: auto 0; /* İçerik kısaysa dikey ortala, uzunsa yukarıdan başla */
    }

    /* Form paneli soluk videonun üzerinde okunur kalsın */
    .login-panel,
    .register-panel {
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 20px 50px rgba(255, 143, 171, 0.22),
                    inset 0 1px 0 rgba(255, 255, 255, 0.55);
    }

    /* Kayıt formu normal akışta kalsın (arka plan sabit videodur) */
    .register-scroll {
        max-height: none;
        height: auto;
        overflow: visible;
    }

    .register-scroll::-webkit-scrollbar {
        display: none;
    }
}
/* ═══════════════════════════════════════════════════════════
   MOBİL: SAĞA-SOLA YATAY KAYMA ENGELLEME (LOGIN + REGISTER)
   Ekran hiçbir durumda sağa/sola kaymaz; yalnızca dikey
   kaydırma çalışır.
   ═══════════════════════════════════════════════════════════ */
html,
body.login-page,
body.register-page {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y; /* Dikey kaydırma serbest, yatay pasif */
    max-width: 100%;
}