/* Giriş sayfası: viewport taşması olmadan tam ekran (100vw scrollbar kaynaklı yatay scroll üretir) */
html {
    height: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    min-height: 0;
}

/* Layout */
.login-layout {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.ataturk-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    pointer-events: none;
}

.ataturk-container img {
    height: clamp(48px, 9vh, 96px);
    width: auto;
    max-width: min(38vw, 120px);
    display: block;
}

/* Banner Section (Left) */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.login-banner {
    flex: 1.1;
    min-width: 0;
    min-height: 0;
    /* Sol panel vurgu rengi (ekrandaki turuncu — başlık, nokta, İnternet Şubesi) */
    --banner-accent: #ff6600;
    --banner-accent-bright: #ff8533;
    /* slightly wider left panel gives it more space */
    background: linear-gradient(-45deg, var(--brand-secondary), var(--brand-dark), #1c2162, #0d1238);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(1rem, 3vh, 2rem) clamp(1rem, 3vw, 3rem);
    color: white;
    overflow: hidden;
}

/* Sol panel başlık: İSMMMO beyaz, alt satır turuncu */
.login-banner__title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
    text-align: center;
}

.login-banner__title-accent {
    color: var(--banner-accent);
    font-weight: 600;
}

/* İnternet Şubesi: ikon + "İnternet" turuncu, "Şubesi" beyaz */
.login-banner .internet-subesi-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.login-banner .internet-subesi-link:hover {
    transform: translateY(-2px);
}

.login-banner .internet-subesi-link svg {
    flex-shrink: 0;
}

.login-banner .internet-subesi-link svg,
.login-banner .internet-subesi-link svg rect,
.login-banner .internet-subesi-link svg line {
    stroke: var(--banner-accent);
    fill: none;
}

.login-banner .internet-subesi-word {
    font-weight: 700;
    font-size: 1.15rem;
}

.login-banner .internet-subesi-word--accent {
    color: var(--banner-accent);
}

.login-banner .internet-subesi-word--light {
    color: #fff;
}

@media (min-width: 1024px) {
    .login-banner {
        display: flex;
    }

    /* Sol panele içe doğru gradient shadow (siyahımsı geçiş ile profesyonel derinlik) */
    .login-banner::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 60px;
        background: linear-gradient(to left, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
        z-index: 10;
        pointer-events: none;
    }

    /* Sağ panele sağa doğru gradient shadow (beyaz zemin üzerine daha hafif gölge formunda) */
    .login-form-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 60px;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.08) 0%, transparent 100%);
        z-index: 10;
        pointer-events: none;
    }
}

@keyframes floatShape {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    33% {
        transform: translateY(-30px) rotate(10deg) scale(1.05);
    }

    66% {
        transform: translateY(20px) rotate(-10deg) scale(0.95);
    }

    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

.banner-overlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.blur-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: floatShape 20s ease-in-out infinite;
    pointer-events: none;
}

.shape-1 {
    top: 10%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: color-mix(in srgb, var(--brand-primary) 42%, transparent);
    animation-delay: 0s;
}

.shape-2 {
    bottom: 10%;
    right: 15%;
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.3);
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    right: 30%;
    width: 250px;
    height: 250px;
    background: rgba(16, 185, 129, 0.2);
    animation-delay: -10s;
}

.shape-4 {
    bottom: 30%;
    left: 10%;
    width: 350px;
    height: 350px;
    background: rgba(139, 92, 246, 0.25);
    animation-delay: -15s;
}

.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(480px, 100%);
    min-width: 0;
    text-align: center;
    transform: translateY(0);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Text Slider Styles */
.text-slider-container {
    position: relative;
    height: 74px;
    /* Slide metni kısa olduğunda gereksiz boşluk oluşmasın */
    margin-bottom: 1.1rem;
    overflow: hidden;
    width: 100%;
}

@keyframes textSlideFade {

    0%,
    25% {
        opacity: 1;
        transform: translateY(0);
        z-index: 2;
    }

    33%,
    92% {
        opacity: 0;
        transform: translateY(-20px);
        z-index: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
        z-index: 1;
    }
}

.text-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    opacity: 0;
    animation: textSlideFade 15s infinite;
}

.text-slide:nth-child(1) {
    animation-delay: 0s;
}

.text-slide:nth-child(2) {
    animation-delay: 5s;
}

.text-slide:nth-child(3) {
    animation-delay: 10s;
}

.text-slide__link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.text-slide__link:hover {
    color: #fff;
}

/* Slider Bullets Navigation */
.slider-bullets {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    margin-top: -0.25rem;
    /* pull up slightly under text */
}

.bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
}

/* Moving active pill */
@keyframes bulletMove {

    0%,
    25% {
        transform: translateX(0);
    }

    33%,
    58% {
        transform: translateX(18px);
        /* 10px dot + 8px gap */
    }

    66%,
    92% {
        transform: translateX(36px);
        /* 2x(10px+8px) */
    }

    100% {
        transform: translateX(0);
    }
}

.login-banner .bullet-active-pill {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--banner-accent);
    top: 0;
    left: 0;
    animation: bulletMove 15s infinite;
    z-index: 2;
    box-shadow: 0 0 0 1px rgba(255, 102, 0, 0.35);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Extracted rules for banner-content to apply full-width */
.banner-footer-menu {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    box-sizing: border-box;
    /* Expand social media area */
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    /* Widen distance between icons */
}

/* Adding custom faint borders for the banner footer layout */
.banner-divider {
    width: 100%;
    max-width: min(520px, 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* More faint dividing lines */
    margin: 2rem 0;
}

/* Sosyal ikonlar + İnternet Şubesi bloğunu üst içeriğe yaklaştır */
.banner-divider--before-footer {
    margin-top: 1rem;
    margin-bottom: 0.85rem;
}

.banner-content > .banner-divider:not(.banner-divider--before-footer) {
    margin-top: 0.85rem;
    margin-bottom: 0.65rem;
}

.brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.brand h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand h1 span {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--brand-primary);
}

.banner-text {
    font-size: 1.1rem;
    color: var(--gray-300);
    line-height: 1.6;
}

/* Form Container (Right) */
.login-form-container {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(0.75rem, 2vh, 1.5rem);
    background-color: var(--gray-50);
    position: relative;
    overflow: hidden;
}

.login-form-container::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Soft Dot Pattern */
    background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    pointer-events: none;
}

.form-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(520px, 100%);
    max-height: 100%;
    min-height: 0;
    background: white;
    padding: clamp(1.25rem, 3.5vh, 2.25rem) clamp(1.25rem, 3vw, 2.25rem);
    /* Alt bilgi satırı (descender) kart alt kenarında kesilmesin */
    padding-bottom: clamp(1.75rem, 4.25vh, 2.85rem);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.02);
    animation: fadeIn 0.8s ease forwards;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
}

.form-wrapper::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.recaptcha-wrap {
    max-width: 100%;
    overflow: hidden;
}

.recaptcha-wrap .g-recaptcha {
    max-width: 100%;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.form-header p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* Form Groups & Inputs */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
}

.input-icon-wrapper {
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
    border-radius: var(--border-radius);
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 2;
}

input[type="text"],
input[type="tel"],
input[type="password"] {
    width: 100%;
    padding: 1rem 1rem 1rem 3.25rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1.05rem;
    color: var(--gray-900);
    background-color: #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    z-index: 1;
}

input:focus {
    border-color: var(--brand-primary);
    background-color: white;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 12%, transparent), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

input:focus+.input-icon,
.input-icon-wrapper:focus-within .input-icon {
    color: var(--brand-primary);
}

/* Radio Buttons for Methods */
.delivery-methods {
    margin-top: 2.25rem;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
}

.custom-radio {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    flex: 1;
    min-width: 110px;
}

.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.875rem 0.5rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-600);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.015);
}

.method-icon {
    margin-bottom: 0;
    color: var(--gray-400);
    transition: all 0.25s ease;
}

.custom-radio:hover .radio-label {
    border-color: var(--gray-300);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.custom-radio input:checked~.radio-label {
    background-color: color-mix(in srgb, var(--brand-primary) 7%, white);
    border-color: var(--brand-primary);
    border-width: 2px;
    padding: calc(0.875rem - 1px) calc(0.5rem - 1px);
    color: var(--brand-primary);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-primary) 14%, transparent);
}

.custom-radio input:checked~.radio-label .method-icon {
    color: var(--brand-primary);
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-gradient-end) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-primary-hover) 0%, var(--brand-primary) 100%);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Footer */
.form-footer {
    flex-shrink: 0;
    margin-top: 2.25rem;
    margin-bottom: 0;
    padding-bottom: 0.2rem;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--gray-400);
}

/* Step Transitions */
.auth-form {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.active-step {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    position: relative;
}

.hidden-step {
    opacity: 0;
    transform: translateX(20px);
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

/* Step 2 Styles */
.back-link-wrapper {
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
}

.back-link:hover {
    color: var(--brand-secondary);
}

.verification-alert {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.verification-alert p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
}

.code-input-container {
    margin-bottom: 1rem;
}

.code-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem !important;
    text-align: center;
    letter-spacing: 0.5em;
    font-family: monospace !important;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    outline: none;
    transition: all 0.3s ease;
}

.code-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

.resend-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.countdown {
    color: var(--gray-500);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.resend-link {
    font-weight: 500;
}

.resend-link.disabled {
    color: var(--gray-400);
    pointer-events: none;
}

/* AJAX hata / uyarı mesajları */
.auth-alert {
    display: none;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    animation: fadeIn 0.2s ease;
}

.auth-alert.is-visible {
    display: flex;
}

.auth-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-alert--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.auth-alert__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 2rem 2rem 2.35rem;
        box-shadow: none;
    }

    .login-form-container {
        padding: 1rem;
        background-color: var(--gray-50);
    }
}

@media (max-height: 820px) {
    .text-slider-container {
        height: 5.75rem;
        margin-bottom: 1.25rem;
    }

    .form-header {
        margin-bottom: 1.25rem !important;
        padding-bottom: 1rem !important;
    }

    .form-group {
        margin-bottom: 1.1rem;
    }

    .form-footer {
        margin-top: 1.1rem;
    }
}