﻿/* KVKK onayı işaretlenmeden kayıt olunmaya çalışılınca çıkan uyarı popup'ı - online satış
   sihirbazındaki wizard-warn-modal (bkz. online-sales.css) ile birebir aynı tasarım, eskiden
   sağ üstte açılan Swal toast'ın yerini alıyor. */
.login-warn-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(20, 24, 29, .45);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity .18s ease;
}

    .login-warn-modal-overlay.open {
        display: flex;
        opacity: 1;
    }

.login-warn-modal {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px -12px rgba(16, 24, 40, .28), 0 4px 16px rgba(16, 24, 40, .08);
    padding: 36px 28px 28px;
    text-align: center;
    transform: scale(.94) translateY(6px);
    opacity: 0;
    transition: transform .22s cubic-bezier(.34, 1.4, .64, 1), opacity .18s ease;
}

.login-warn-modal-overlay.open .login-warn-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.login-warn-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #9aa2ab;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
}

    .login-warn-modal-close:hover {
        background: #f2f4f6;
        color: #5f6b7a;
    }

.login-warn-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(192, 0, 0, .1);
    color: #C00000;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-warn-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}

.login-warn-modal-desc {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0 0 24px;
}

.login-warn-modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-warn-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 10px 24px;
    border: none;
    border-radius: 10px;
    background: #C00000;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

    .login-warn-modal-btn:hover {
        background: #960000;
    }


.login-tab-switcher {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 1.25rem;
}

.login-tab-btn {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

    .login-tab-btn.active {
        color: #ea5455;
        border-bottom-color: #ea5455;
        font-weight: 600;
    }

    .login-tab-btn:hover:not(.active) {
        color: #333;
    }

.otp-method-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.method-btn {
    flex: 1;
    padding: 9px 12px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #6c757d;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

    .method-btn i {
        font-size: 12px !important;
        width: 12px;
    }

    .method-btn.active {
        border-color: #ea5455;
        color: #ea5455;
        background: #fff5f5;
        font-weight: 500;
    }

    .method-btn:hover:not(.active) {
        border-color: #aaa;
        color: #333;
    }

.otp-code-inputs {
    display: flex;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.otp-code-box {
    width: 44px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #333;
}

    .otp-code-box:focus {
        border-color: #ea5455;
        box-shadow: 0 0 0 3px rgba(234,84,85,0.12);
    }

.account-card {
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .account-card:hover, .account-card.selected {
        border-color: #ea5455;
        background: #fff5f5;
    }

    .account-card .account-info {
        flex: 1;
        min-width: 0;
    }

    .account-card .account-name {
        font-weight: 600;
        font-size: 14px;
        color: #333;
    }

    .account-card .account-company {
        font-size: 12px;
        color: #888;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.account-radio {
    accent-color: #ea5455;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.reg-phone-group {
    display: flex;
    gap: 8px;
}

    .reg-phone-group .phone-input-wrap {
        flex: 1;
        position: relative;
    }

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
    margin-top: 4px;
}

.otp-resend {
    font-size: 12px;
    color: #888;
    text-align: right;
    margin-bottom: 0.5rem;
    min-height: 18px;
}

    .otp-resend a {
        color: #ea5455;
        cursor: pointer;
        text-decoration: underline;
    }

.mb-04 {
    margin-bottom: 4px !important;
}

.otp-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.otp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

    .otp-footer .otp-resend {
        text-align: left;
        margin-bottom: 0;
    }

.btn-otp-action {
    background: none;
    border: none;
    color: #ea5455;
    font-size: 12px;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
}

    .btn-otp-action:hover {
        text-decoration: underline;
    }

    .btn-otp-action:disabled {
        color: #aaa;
        cursor: default;
        text-decoration: none;
    }

.otp-code-box:not(:placeholder-shown) {
    background-color: #fff5f5;
    border-color: #ea5455;
}

.reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.reg-field {
    margin-bottom: 1rem;
}

    .reg-field .form-control {
        border: 1.5px solid #ddd;
        border-radius: 6px;
        transition: border-color .2s, box-shadow .2s;
    }

        .reg-field .form-control:focus {
            border-color: #ea5455 !important;
            box-shadow: 0 0 0 3px rgba(234,84,85,0.12) !important;
            outline: none;
        }

.reg-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin-bottom: 4px;
}

.reg-label-optional {
    font-size: 11px;
    font-weight: 400;
    color: #aaa;
}

.kvkk-consent-wrap {
    margin-bottom: 1rem;
}

.kvkk-check-row {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding-left: 0;
}

    .kvkk-check-row .form-check-input {
        position: static;
        margin: 2px 0 0;
        flex-shrink: 0;
        cursor: pointer;
    }

    .kvkk-check-row .form-check-label {
        font-size: 12px;
        color: #555;
        margin-bottom: 0;
        cursor: pointer;
    }

    .kvkk-check-row + .kvkk-check-row {
        margin-top: 0.5rem;
    }

.kvkk-terms-link {
    color: #ea5455;
    font-weight: 600;
    cursor: pointer;
}

    .kvkk-terms-link:hover {
        text-decoration: underline;
    }

.kvkk-terms-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .kvkk-terms-modal-overlay.open {
        display: flex;
    }

.kvkk-terms-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px -20px rgba(15, 23, 42, 0.5);
}

.kvkk-terms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f0f2f5;
    flex-shrink: 0;
}

    .kvkk-terms-modal-header h4 {
        margin: 0;
        font-size: 16.5px;
        font-weight: 700;
        color: #1a1f36;
    }

.kvkk-terms-modal-close {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 15px;
    cursor: pointer;
    padding: 4px 8px;
}

    .kvkk-terms-modal-close:hover {
        color: #1a1f36;
    }

.kvkk-terms-modal-body {
    padding: 20px 22px 24px;
    overflow-y: auto;
}

    .kvkk-terms-modal-body p {
        font-size: 13px;
        line-height: 1.7;
        color: #555;
        margin-bottom: 14px;
    }

        .kvkk-terms-modal-body p:last-child {
            margin-bottom: 0;
        }

.phone-combined-wrap {
    display: flex;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .phone-combined-wrap:focus-within {
        border-color: #ea5455;
        box-shadow: 0 0 0 3px rgba(234,84,85,0.12);
    }

.phone-field-container {
    position: relative;
}

.cp-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    border-right: 1.5px solid #eee;
    background: #f8f9fa;
    padding: 0 8px;
    align-self: stretch;
    cursor: pointer;
    color: #444;
    min-width: 46px;
    white-space: nowrap;
    outline: none;
    transition: background 0.15s;
}

    .cp-trigger:hover:not([disabled]) {
        background: #f0f0f0;
    }

    .cp-trigger[disabled] {
        cursor: default;
        opacity: 0.7;
    }

.cp-flag-img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    flex-shrink: 0;
}

.cp-item-flag-img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    flex-shrink: 0;
}

.cp-chevron {
    font-size: 11px !important;
    color: #aaa;
    transition: transform 0.2s;
    margin-left: 2px;
}

.phone-field-container.open .cp-chevron {
    transform: rotate(180deg);
}

.cp-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1050;
    background: #fff;
    border: 1.5px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.11);
    padding: 5px 0;
    min-width: 195px;
    max-height: 230px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
}

.phone-field-container.open .cp-dropdown {
    display: block;
}

.cp-dropdown li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.12s;
    list-style: none;
}

    .cp-dropdown li:hover,
    .cp-dropdown li.cp-active {
        background: #fff5f5;
    }

    .cp-dropdown li.cp-active .cp-item-name {
        color: #ea5455;
        font-weight: 500;
    }

.cp-item-flag { font-size: 15px; line-height: 1; }
.cp-item-name { flex: 1; font-size: 13px; color: #333; }
.cp-item-code { font-size: 12px; color: #999; font-weight: 500; }

.phone-num-input::placeholder {
    color: #bdbdbd;
    opacity: 1;
}

.phone-num-input {
    flex: 1;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 14px;
    padding: 8px 10px;
    min-width: 0;
    border-radius: 0 !important;
    background: transparent;
}

    .phone-num-input:focus {
        border: none !important;
        box-shadow: none !important;
    }

.phone-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .phone-input-row .phone-combined-wrap {
        flex: 1;
    }

.inline-send-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #ea5455;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    transition: opacity 0.15s;
}

    .inline-send-btn:hover:not([disabled]) {
        opacity: 0.7;
    }

    .inline-send-btn[disabled] {
        cursor: default;
        opacity: 0.6;
    }

    .inline-send-btn.verified {
        color: #28a745;
    }

@media (max-width: 480px) {
    .reg-grid {
        grid-template-columns: 1fr;
    }
}

/* Kayıt formunda OTP kutusu açıldığında dizüstü (laptop) yükseklikli ekranlarda
   (ör. 1366x768, 1440x900) içerik sıkışmasın diye daha kompakt boşluklar. */
@media (max-height: 900px) {
    body.blank-page {
        overflow-y: auto;
    }

    .col-lg-7 img {
        max-height: 90vh;
        object-fit: contain;
    }

    .login-tab-switcher {
        margin-bottom: 0.85rem;
    }

    .reg-field {
        margin-bottom: 0.65rem;
    }

    .otp-card {
        padding: 0.65rem 0.9rem;
    }

    .otp-code-inputs {
        gap: 6px;
        margin-bottom: 0.35rem;
    }

    .otp-code-box {
        width: 38px;
        height: 42px;
        font-size: 17px;
    }
}

@media (max-height: 900px) and (max-width: 480px) {
    .otp-code-box {
        width: 34px;
        height: 40px;
        font-size: 16px;
    }

    .otp-code-inputs {
        gap: 5px;
    }
}