/* ══════════════════════════════════════════════════════════════
   AUTH PAGES – Login & Register (Buyer + Vendor)
   ══════════════════════════════════════════════════════════════ */

/* ── Auth Card ── */
.auth-card {
    margin: 0 auto;
    max-width: 820px;
}

/* ── Tab Buttons ── */
.auth-tabs {
    border-bottom: 2px solid #f0f0f0;
}
.auth-tab-btn {
    flex: 1;
    padding: 16px 20px;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #6E6E6E;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}
.auth-tab-btn:hover {
    color: #253D4E;
    background: #f9fafb;
}
.auth-tab-btn.active {
    color: #21754b;
    border-bottom-color: #21754b;
    background: #f0faf4;
}

/* ── Auth Body ── */
.auth-body {
    padding: 30px;
}
@media (min-width: 768px) {
    .auth-body { padding: 40px; }
    .p-md-40 { padding: 40px !important; }
}

/* ── Form Controls ── */
.auth-card .form-control {
    height: 48px;
    border-radius: 10px;
    border: 1px solid #e4e4e4;
    padding: 8px 16px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.auth-card .form-control:focus {
    border-color: #3BB77E;
    box-shadow: 0 0 0 3px rgba(59, 183, 126, 0.1);
}
.auth-card .form-control.is-invalid {
    border-color: #FD6E6E;
    box-shadow: 0 0 0 3px rgba(253, 110, 110, 0.1);
}
.auth-card textarea.form-control {
    height: auto;
    min-height: 80px;
}
.auth-card select.form-control {
    appearance: auto;
    -webkit-appearance: auto;
}
.auth-card label {
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #253D4E;
    margin-bottom: 6px;
    display: block;
}
.auth-card .invalid-feedback {
    display: block;
    font-size: 12px;
    color: #FD6E6E;
    margin-top: 4px;
}

/* ── Password Toggle ── */
.toggle-pw {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #B6B6B6;
    font-size: 16px;
    z-index: 2;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-pw:hover {
    color: #3BB77E;
}
.position-relative .form-control {
    padding-right: 48px !important;
}

/* ── Submit Button ── */
.auth-card .btn-heading {
    background-color: #3BB77E;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 16px;
    height: 52px;
    border-radius: 10px;
    border: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-card .btn-heading:hover {
    background-color: #29a36c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 183, 126, 0.3);
}
.btn-loader i {
    display: inline-block;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ── Alert Box ── */
.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}
.auth-alert-success {
    background: #e6f9ee;
    color: #1a7d45;
    border: 1px solid #b3ebc9;
}
.auth-alert-danger {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

/* ── Step Title ── */
.step-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #253D4E;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e4e4e4;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3BB77E, #29a36c);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
}

/* ── Buyer Type Toggle ── */
.buyer-type-toggle {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e4e4e4;
    background: #f4f5f9;
}
.btype-btn {
    flex: 1;
    padding: 14px 16px;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #555555;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
    text-align: center;
}
.btype-btn small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.7;
    margin-top: 2px;
}
.btype-btn:hover {
    color: #253D4E;
    background: #eef0f5;
}
.btype-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #3BB77E, #29a36c);
    box-shadow: 0 4px 12px rgba(59, 183, 126, 0.25);
}
.btype-btn.active small {
    opacity: 0.9;
}

/* ── Divider ── */
.divider-text-center {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #6E6E6E;
    font-size: 13px;
}
.divider-text-center::before,
.divider-text-center::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e4e4e4;
}

/* ── Vendor Badge Header ── */
.vendor-badge-header {
    background: linear-gradient(135deg, #253D4E, #1a2d3a);
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.vendor-badge-header i {
    font-size: 16px;
    color: #3BB77E;
}

/* ── Info Box (vendor) ── */
.auth-info-box {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #795548;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}
.auth-info-box i {
    margin-top: 2px;
    color: #FFA000;
    font-size: 16px;
    flex-shrink: 0;
}

/* ── Breadcrumb ── */
.page-header.breadcrumb-wrap {
    background: #f7f8fa;
    padding: 15px 0;
    border-bottom: 1px solid #ececec;
}
.breadcrumb {
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #555555;
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumb a {
    color: #253D4E;
    text-decoration: none;
}
.breadcrumb span {
    color: #888888;
}
.breadcrumb span::after {
    content: '›';
    margin: 0 4px;
}

/* ── Custom Checkbox ── */
.custome-checkbox .form-check-input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #d1d5db;
    cursor: pointer;
    margin-right: 8px;
    vertical-align: middle;
}
.custome-checkbox .form-check-input:checked {
    background-color: #3BB77E;
    border-color: #3BB77E;
}
.custome-checkbox .form-check-label {
    font-size: 13px;
    color: #555555;
    cursor: pointer;
    vertical-align: middle;
}

/* ── Animations ── */
#panel-login,
#panel-register,
#reg-step-bisnis {
    animation: fadeSlideIn 0.35s ease-out;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 576px) {
    .auth-body { padding: 20px !important; }
    .auth-tab-btn { font-size: 14px; padding: 12px 10px; }
    .btype-btn { font-size: 13px; padding: 12px 10px; }
    .btype-btn small { font-size: 10px; }
    .step-title { font-size: 14px; }
}

/* ── Select2 Overrides ── */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single { height: 50px; border: 1px solid #ececec; border-radius: 10px; padding: 10px 15px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 28px; color: #253D4E; }
.select2-dropdown { border-radius: 10px; border: 1px solid #ececec; }

