/* ==========================================================================
   style_v6.css - 團購表單 v6 現代結帳架構專用樣式表
   所有樣式規則一律嚴格收斂在 .gb-v6 作用域內，100% 確保不干擾線上 show3.jsp (v4)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 盒模型沙箱重置 (Box-Sizing Reset)
   徹底解決 MDB .md-form input 注入 content-box 導致 input 右端超出 51px 之問題
   -------------------------------------------------------------------------- */
.gb-v6 *,
.gb-v6 *::before,
.gb-v6 *::after {
    box-sizing: border-box !important;
}

/* --------------------------------------------------------------------------
   2. 卡片結構與間距呼吸節奏 (Card & Hierarchy Spacing)
   -------------------------------------------------------------------------- */
.gb-v6 .card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.gb-v6 .banner-col.col-md-8 .card.z-depth-0 {
    border: 0;
}

/* 僅限結帳表單內的卡片套用 margin-bottom: 20px，避免撐大商品區分類標題與商品間距 (44px 空隙) */
.gb-v6 .section-address .card,
.gb-v6 #section-address .card {
    margin-bottom: 20px;
}

.gb-v6 .card-body {
    padding: 20px 24px;
}

@media (max-width: 576px) {
    .gb-v6 .card-body {
        padding: 16px 14px;
    }
}

/* --------------------------------------------------------------------------
   頂部主視覺 Banner 與標題條圓弧 (Compound Card & Standalone Banner)
   -------------------------------------------------------------------------- */

/* 【無 Banner 時】：四邊全圓角獨立膠囊卡片 */
.gb-v6 #banner-0-title {
    border-radius: 12px !important;
    margin-top: 10px !important;
    margin-bottom: 20px !important;
    padding: 12px 20px !important;
}

/* 【有 Banner 輪播圖時】：複合卡片一體化 (圖片上圓角 + 標題下圓角 + 接縫平整) */
.gb-v6 #banner-col:has(.carousel) .carousel {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    overflow: hidden;
    transform: translateZ(0);
}

.gb-v6 #banner-col:has(.carousel) .carousel .carousel-inner,
.gb-v6 #banner-col:has(.carousel) .carousel .carousel-item {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    overflow: hidden;
}

.gb-v6 #banner-col:has(.carousel) #banner-0-title {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

/* 螢幕滿版 (fullCol) 自動直角保護 */
.gb-v6 #banner-0 .container-fluid .carousel,
.gb-v6 #banner-0 .container-fluid #banner-0-title {
    border-radius: 0 !important;
}

/* --------------------------------------------------------------------------
   卡片標題條 (Section Title)
   -------------------------------------------------------------------------- */
.gb-v6 .section-title,
.gb-v6 .section-address-title,
.gb-v6 .section-invoice-title,
.gb-v6 .section-payment-method-title,
.gb-v6 .section-shipping-method-title,
.gb-v6 .section-fast-login-title,
.gb-v6 .section-order-notice-title {
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 結帳表單內部標題條：維持 18px 下邊距呼吸感 */
.gb-v6 .section-address .section-title,
.gb-v6 #section-address .section-title {
    margin-top: 0;
    margin-bottom: 18px !important;
    padding: 10px 16px !important;
}

.gb-v6 .section-title h5 {
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gb-v6 .section-title h5 i {
    margin-right: 8px;
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   3. 現代表單元件 (Modern Form Controls - 徹底淘汰 md-form)
   -------------------------------------------------------------------------- */
.gb-v6 .form-group-modern {
    position: relative;
    margin-bottom: 16px;
    width: 100%;
    text-align: left;
}

.gb-v6 .form-label-modern {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    line-height: 1.4;
    text-align: left;
    letter-spacing: 0.2px;
}

.gb-v6 .form-label-modern .text-danger,
.gb-v6 .form-label-modern .req-star {
    color: #ef4444 !important;
    margin-left: 2px;
    font-weight: bold;
}

/* 輸入框與下拉選單：標準 42px 高度、全封閉圓角邊框 */
.gb-v6 .form-control-modern,
.gb-v6 select.form-control-modern {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    padding: 9px 12px !important;
    padding-right: 36px !important;
    height: 42px !important;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 14px !important;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gb-v6 .form-control-modern:focus,
.gb-v6 select.form-control-modern:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none !important;
}

.gb-v6 .form-control-modern::placeholder {
    color: #94a3b8;
    font-size: 13px !important;
}

.gb-v6 textarea.form-control-modern {
    height: auto !important;
    min-height: 80px;
    padding-right: 12px !important;
}

/* 台灣縣市與行政區 50%/50% 緊湊下拉容器 */
.gb-v6 .form-row-compact {
    display: flex;
    gap: 10px;
    width: 100%;
}

.gb-v6 .form-row-compact > div {
    flex: 1 1 0;
    min-width: 0;
}

.gb-v6 .form-row-compact select.form-control,
.gb-v6 .form-row-compact select.county,
.gb-v6 .form-row-compact select.district {
    width: 100% !important;
    height: 42px !important;
    margin-left: 0 !important;
    padding: 8px 12px !important;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

/* --------------------------------------------------------------------------
   4. 欄位失焦驗證狀態：成功打勾與錯誤紅框 Shake
   -------------------------------------------------------------------------- */
.gb-v6 .form-control-modern.has-success,
.gb-v6 .form-group-modern.has-success .form-control-modern {
    border-color: #22c55e !important;
}

.gb-v6 .form-group-modern .field-success-icon {
    position: absolute;
    right: 12px;
    top: 36px;
    color: #22c55e;
    font-size: 16px;
    display: none;
    pointer-events: none;
    z-index: 2;
}

.gb-v6 .form-control-modern.has-success ~ .field-success-icon,
.gb-v6 .form-group-modern.has-success .field-success-icon {
    display: block !important;
}

.gb-v6 .form-control-modern.has-error,
.gb-v6 .form-group-modern.has-error .form-control-modern {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
    animation: v6FieldShake 0.3s ease;
}

.gb-v6 .form-group-modern.has-error .field-success-icon {
    display: none !important;
}

/* 統一現代表單錯誤訊息格式 (對齊 jQuery.validator 輸出) */
.gb-v6 .form-group-modern .help-block:not(.submit):not(.submit-validate) {
    display: block;
    margin-left: 0 !important;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    margin-bottom: 4px;
    background: transparent;
    letter-spacing: normal;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

.gb-v6 .form-group-modern .help-block:not(.submit):not(.submit-validate):not(:empty)::before {
    content: "\f06a"; /* Font Awesome fa-circle-exclamation */
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    margin-right: 4px;
    color: #ef4444;
}

.gb-v6 .form-group-modern .field-error-msg {
    display: none !important;
}

@keyframes v6FieldShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* --------------------------------------------------------------------------
   5. 電子發票藥丸分段切換鈕 (Segmented Tabs / Pill Tabs)
   -------------------------------------------------------------------------- */
.gb-v6 .invoice-segmented-tabs,
.gb-v6 .invoice-pill-tabs {
    display: flex;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    margin-top: 4px;
    margin-bottom: 18px !important;
    border: 1px solid #e2e8f0;
}

.gb-v6 .invoice-seg-btn {
    flex: 1 1 0;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 8px 6px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    line-height: 1.2;
}

.gb-v6 .invoice-seg-btn:hover {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.6);
}

.gb-v6 .invoice-seg-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    font-weight: 700;
}

.gb-v6 .company-invoice-fields {
    animation: invoiceFadeIn 0.2s ease-in-out;
}

@keyframes invoiceFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   6. 付款方式品牌卡片網格 (Payment Tiles Grid)
   -------------------------------------------------------------------------- */
.gb-v6 .payment-tiles-grid,
.gb-v6 .payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 16px !important;
}

@media (max-width: 576px) {
    .gb-v6 .payment-tiles-grid,
    .gb-v6 .payment-methods-grid {
        grid-template-columns: 1fr;
    }
}

.gb-v6 .payment-tile {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background: #ffffff;
    position: relative;
    user-select: none;
    margin-bottom: 0;
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    text-align: center;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
}

.gb-v6 .payment-tile:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.gb-v6 .payment-tile.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
    box-shadow: 0 0 0 1px #2563eb;
}

.gb-v6 .payment-tile.disabled {
    border-color: #e2e8f0;
    background: #f8fafc;
    cursor: not-allowed;
}

.gb-v6 .payment-tile.disabled:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.gb-v6 .payment-tile.disabled .payment-tile-name {
    color: #94a3b8;
}

.gb-v6 .payment-tile-reason {
    font-size: 11px;
    line-height: 1.3;
    display: block;
    margin-top: 4px;
    font-weight: 500;
    text-align: center;
    word-break: break-word;
    color: #dc2626;
}

/* --------------------------------------------------------------------------
   7. 配送方式選項點選體驗 (Shipping Methods Options)
   -------------------------------------------------------------------------- */
.gb-v6 .section-shipping-method-body .form-check,
.gb-v6 .shipping-methods-container .form-check {
    padding: 10px 14px 10px 32px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    background-color: #fafbfc;
    transition: all 0.15s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

.gb-v6 .section-shipping-method-body .form-check:hover,
.gb-v6 .shipping-methods-container .form-check:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.gb-v6 .section-shipping-method-body .form-check.disabled,
.gb-v6 .shipping-methods-container .form-check.disabled {
    cursor: not-allowed;
    background-color: #fafbfc;
    border-color: #e2e8f0;
}

.gb-v6 .section-shipping-method-body .form-check.disabled:hover,
.gb-v6 .shipping-methods-container .form-check.disabled:hover {
    border-color: #e2e8f0;
    background-color: #fafbfc;
}

.gb-v6 .section-shipping-method-body .form-check.disabled .shipping-method-title,
.gb-v6 .shipping-methods-container .form-check.disabled .shipping-method-title {
    color: #94a3b8;
}

.gb-v6 .section-shipping-method-body .form-check-input,
.gb-v6 .shipping-methods-container .form-check-input {
    margin-top: 0;
    margin-left: -20px;
    cursor: pointer;
}

.gb-v6 .section-shipping-method-body .form-check-label,
.gb-v6 .shipping-methods-container .form-check-label {
    cursor: pointer;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gb-v6 .shipping-method-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gb-v6 .shipping-method-title {
    font-size: 14px;
    line-height: 1.4;
}

.gb-v6 .shipping-method-reason {
    font-size: 12px;
    line-height: 1.3;
    display: block;
    margin-top: 3px;
    font-weight: 400;
    color: #dc3545;
}

/* --------------------------------------------------------------------------
   8. 備註快捷標籤與折疊容器 (Note Quick Chips & Collapsible Section - SPEC-R58)
   -------------------------------------------------------------------------- */
.gb-v6 .note-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 0;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}

.gb-v6 .note-toggle-bar:hover {
    opacity: 0.85;
}

.gb-v6 .note-toggle-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gb-v6 .note-toggle-arrow.rotate-180 {
    transform: rotate(180deg);
}

.gb-v6 .note-notice-box {
    background-color: #fefce8;
    border: 1px solid #fef08a;
    color: #854d0e;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 8px;
    padding: 8px 12px;
}

.gb-v6 .note-notice-box strong {
    color: #713f12;
    font-weight: 600;
}

.gb-v6 .note-quick-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    margin-right: 4px;
    margin-bottom: 4px;
}

.gb-v6 .note-quick-chip:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    text-decoration: none;
}

.gb-v6 .note-quick-chip.active {
    background-color: #e0f2fe;
    border-color: #38bdf8;
    color: #0284c7;
    font-weight: 600;
}

.gb-v6 .note-char-counter {
    font-size: 11px;
    color: #94a3b8;
}

/* --------------------------------------------------------------------------
   9. 現代膠囊單選鈕 (Radio Pill Buttons - 性別/自訂單選欄位)
   -------------------------------------------------------------------------- */
.gb-v6 .radio-pill-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.gb-v6 .radio-pill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    margin-bottom: 0 !important;
}

.gb-v6 .radio-pill-btn:hover {
    border-color: #94a3b8;
    background-color: #f8fafc;
}

.gb-v6 .radio-pill-btn.active,
.gb-v6 .radio-pill-btn:has(input[type="radio"]:checked) {
    border-color: #3b82f6;
    background-color: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.gb-v6 .radio-pill-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* --------------------------------------------------------------------------
   10. 送出訂單按鈕與禁用狀態 (Submit Button & Disabled State - SPEC-R59)
   -------------------------------------------------------------------------- */
.gb-v6 .btn-submit:disabled,
.gb-v6 .btn-submit[disabled],
.gb-v6 .submit-order .btn:disabled,
.gb-v6 .submit-order .btn[disabled] {
    background: #cbd5e1 !important;
    background-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    border-color: #cbd5e1 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 0.7 !important;
    pointer-events: auto !important;
}

.gb-v6 .btn-submit:disabled:hover,
.gb-v6 .btn-submit[disabled]:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    background-color: #cbd5e1 !important;
}

/* ==========================================================================
   11. 現代化顧客會員認證與個資彈窗結構佈局 (Auth & Profile Modal Architecture)
   與主題無關的純結構、尺寸、定位、垂直置中、動畫與基礎佈局規範
   ========================================================================== */

.gb-v6 .auth-modal-dialog,
.gb-auth-modal .auth-modal-dialog,
.gb-profile-modal .auth-modal-dialog {
    max-width: 480px;
    margin: 1.75rem auto;
}

.gb-auth-inline {
    max-width: 480px;
    margin: 24px auto;
}
.gb-v6 .auth-modal-content,
.gb-auth-modal .auth-modal-content,
.gb-profile-modal .auth-modal-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2) !important;
}

.gb-v6 .auth-modal-header-banner,
.gb-auth-modal .auth-modal-header-banner,
.gb-profile-modal .auth-modal-header-banner {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.gb-v6 .auth-header-title,
.gb-auth-modal .auth-header-title,
.gb-profile-modal .auth-header-title {
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    letter-spacing: 0.5px;
}

.gb-v6 .auth-header-close,
.gb-auth-modal .auth-header-close,
.gb-profile-modal .auth-header-close {
    color: #64748b;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    line-height: 1;
    transition: all 0.2s ease;
}

.gb-v6 .auth-header-close:hover,
.gb-auth-modal .auth-header-close:hover,
.gb-profile-modal .auth-header-close:hover {
    background: rgba(128, 128, 128, 0.15);
    color: #1e293b;
    transform: scale(1.1);
}

.gb-v6 .auth-modal-body,
.gb-auth-modal .auth-modal-body,
.gb-profile-modal .auth-modal-body {
    background: #ffffff;
    color: #1e293b;
    padding: 24px 28px 32px 28px;
}

.gb-auth-modal .auth-login-hint {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #334155;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* 彈窗輸入框包裹容器 (包含輸入框與右側垂直置中圖標) */
.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* 認證與個資彈窗專屬 48px 厚圓角輸入框骨架 */
.gb-auth-modal .form-control-modern,
.gb-profile-modal .form-control-modern {
    height: 48px !important;
    padding: 10px 44px 10px 16px !important;
    font-size: 0.95rem !important;
    border-radius: 12px !important;
    outline: none;
    box-sizing: border-box;
}

/* 彈窗輸入框內的正向驗證綠色打勾圓圈：精準垂直置中 (杜絕跑版) */
.auth-input-wrapper .field-success-icon {
    position: absolute;
    right: 14px;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #22c55e;
    font-size: 1.15rem;
    display: none;
    pointer-events: none;
    z-index: 5;
    line-height: 1;
}

.form-group-modern.has-success .auth-input-wrapper .field-success-icon,
.gb-auth-modal .form-group-modern.has-success .field-success-icon,
.gb-profile-modal .form-group-modern.has-success .field-success-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    animation: authScaleIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes authScaleIn {
    from {
        transform: translateY(-50%) scale(0.4);
        opacity: 0;
    }
    to {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

/* 密碼眼睛開關：精準垂直置中 */
.auth-input-wrapper .auth-toggle-pwd {
    position: absolute;
    right: 14px;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, right 0.2s ease;
}

/* 有綠色打勾圓圈時，眼睛按鈕自動往左挪移讓位 */
.form-group-modern.has-success .auth-input-wrapper .auth-toggle-pwd {
    right: 42px !important;
}

/* 彈窗欄位錯誤訊息與搖晃反饋 (重用既有 v6FieldShake 動畫) */
.gb-auth-modal .field-error-msg,
.gb-profile-modal .field-error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
    display: none;
    text-align: left;
}

.gb-auth-modal .form-group-modern.has-error .field-error-msg,
.gb-profile-modal .form-group-modern.has-error .field-error-msg {
    display: block !important;
}

.gb-auth-modal .form-group-modern.has-error .form-control-modern,
.gb-profile-modal .form-group-modern.has-error .form-control-modern {
    animation: v6FieldShake 0.3s ease;
}

/* 主按鈕結構 */
.auth-btn-primary {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    background-color: #2563eb;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.auth-btn-primary:hover:not(:disabled) {
    filter: brightness(1.08);
}

.auth-btn-primary:disabled {
    opacity: 0.65;
}

/* 6 碼 OTP 卡片格結構 */
.auth-otp-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 20px 0;
}

.auth-otp-input {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    background-color: #ffffff;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-otp-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.auth-otp-input.filled {
    border-color: #22c55e;
    background-color: #f0fdf4;
}

.auth-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.auth-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}


