/* Ortak auth sayfaları (Login, Register): wrapper + hareketli bulanık şekiller */

/* Auth layout sadece Login/Register kullanır; sayfa arka planı */
body {
    min-height: 100%;
    margin: 0;
    background-color: #f0f4f8;
}

/* Login/Register ortak wrapper: sade zemin + hareketli şekiller */
.auth-wrapper-split {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    background-color: #f0f4f8;
}

/* Hareketli arka plan şekilleri – formla uyumlu, sakin hareket */
.auth-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.auth-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.32;
    will-change: transform;
}

.auth-bg-shape-1 {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    top: 5%;
    left: 8%;
    animation: auth-shape-move 25s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.auth-bg-shape-2 {
    width: 240px;
    height: 240px;
    background: linear-gradient(135deg, #1d4ed8 0%, #6366f1 100%);
    top: 55%;
    right: 5%;
    animation: auth-shape-move 28s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite reverse;
    animation-delay: -7s;
}

.auth-bg-shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #818cf8 0%, #a5b4fc 100%);
    bottom: 10%;
    left: 12%;
    animation: auth-shape-move 22s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    animation-delay: -4s;
}

.auth-bg-shape-4 {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    top: 30%;
    right: 20%;
    animation: auth-shape-float 20s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    animation-delay: -2s;
}

.auth-bg-shape-5 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    bottom: 30%;
    right: 15%;
    animation: auth-shape-float 26s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite reverse;
    animation-delay: -10s;
}

@keyframes auth-shape-move {
    0%, 100% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(24px, -32px) scale(1.03); }
    40% { transform: translate(-28px, 20px) scale(0.97); }
    60% { transform: translate(32px, 28px) scale(1.02); }
    80% { transform: translate(-20px, -24px) scale(0.98); }
}

@keyframes auth-shape-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -25px) scale(1.04); }
    50% { transform: translate(-25px, 15px) scale(0.96); }
    75% { transform: translate(15px, 22px) scale(1.02); }
}

/* Ortak kart container (Login ve Register) */
.auth-card-split {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    background: #fff;
}

@media (max-width: 768px) {
    .auth-card-split {
        flex-direction: column;
        max-width: 440px;
    }
}

/* Geri / Ana sayfa çubuğu – Login ve Register ortak */
.auth-back-bar {
    margin-top: -1.25rem;
    margin-bottom: 1rem;
    padding-top: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.auth-back-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-back-link:hover {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06);
}

.auth-back-link i {
    font-size: 1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .auth-back-bar {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    .auth-back-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Slider paneli – arka plan beyaz, görsel paneli ortala (Login + Register) */
.auth-panel-left,
.auth-register-visual-panel {
    padding: 0.5rem !important;
    background: #fff !important;
}
/* Carousel içeriği slider yüksekliğini doldursun */
.auth-panel-left .carousel-inner,
.auth-register-visual-panel .carousel-inner {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: stretch;
}
/* Slider noktaları: beyaz arka planda görünür olması için koyu ton */
.auth-panel-dots button {
    background: rgba(0, 0, 0, 0.2);
}
.auth-panel-dots button:hover {
    background: rgba(0, 0, 0, 0.35);
}
.auth-panel-dots button.active {
    background: #2563eb;
}
/* Slayt öğesi: tam genişlik, slider yüksekliğini doldur, içerik ortada */
.auth-panel-left .carousel-item,
.auth-register-visual-panel .carousel-item {
    flex: 0 0 100%;
    width: 100%;
    min-height: 0;
    padding: 0.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.auth-panel-left .carousel-item.active,
.auth-register-visual-panel .carousel-item.active {
    display: flex;
}
/* Görsel: slider boyutuna sığar, dikey ve yatayda tam ortada */
.auth-slide-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: center center;
    border-radius: 0.5rem;
    display: block;
}
