﻿/* ============================================
   BOX PAGES (Login, Register, Forgot, OTP)
   File: box.css
   ============================================ */

/* ======================== */
/* Page Background          */
/* ======================== */
.box-page {
    min-height: 100vh;
    background: #be0b31 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Decorative shapes */
.box-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.box-bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.box-bg-shape-1 {
    width: 500px;
    height: 500px;
    background: #fff;
    top: -150px;
    right: -100px;
}

.box-bg-shape-2 {
    width: 350px;
    height: 350px;
    background: #ff4d6d;
    bottom: -80px;
    left: -60px;
}

.box-bg-shape-3 {
    width: 200px;
    height: 200px;
    background: #fff;
    bottom: 20%;
    right: 15%;
    opacity: 0.06;
}

/* ======================== */
/* Wrapper & Card           */
/* ======================== */
.box-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.box-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: boxSlideUp 0.4s ease;
}

    .box-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 4px;
        background: linear-gradient(90deg, #be0b31 0%, #ff4d6d 50%, #be0b31 100%);
    }

@keyframes boxSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================== */
/* Logo                     */
/* ======================== */
.box-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    text-decoration: none;
}

    .box-logo img {
        max-height: 48px;
        object-fit: contain;
    }

/* ======================== */
/* Header                   */
/* ======================== */
.box-header {
    text-align: center;
    margin-bottom: 28px;
}

.box-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #fef2f4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 20px;
    color: #be0b31;
}

.box-title {
    font-size: 20px;
    font-weight: 800;
    color: #222;
    margin: 0 0 6px;
}

.box-subtitle {
    font-size: 13px;
    color: #aaa;
    margin: 0;
}

/* ======================== */
/* Form                     */
/* ======================== */
.box-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Field */
.box-field {
    margin-bottom: 16px;
}

.box-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.box-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

    .box-label-row .box-label {
        margin-bottom: 0;
    }

/* ======================== */
/* Input                    */
/* ======================== */
.box-input-wrap {
    position: relative;
}

.box-input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #ccc;
    pointer-events: none;
    transition: color 0.15s;
    z-index: 1;
}

.box-input-wrap:focus-within .box-input-icon {
    color: #be0b31;
}

.box-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    padding-right: 44px;
    font-size: 14px;
    color: #333;
    background: #f9fafb;
    border: 1.5px solid #eee;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    transition: all 0.2s;
}

    .box-input:focus {
        background: #fff;
        border-color: #be0b31;
        box-shadow: 0 0 0 4px rgba(190, 11, 49, 0.06);
    }

    .box-input::placeholder {
        color: #bbb;
        font-size: 13px;
    }

/* Eye toggle */
.box-eye {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
    transition: color 0.15s;
}

    .box-eye:hover {
        color: #888;
    }

/* Forgot Link */
.box-forgot {
    font-size: 12px;
    color: #be0b31;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

    .box-forgot:hover {
        color: #a00a2a;
        text-decoration: none;
    }

/* ======================== */
/* Submit Button            */
/* ======================== */
.box-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    background: #be0b31;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
    text-decoration: none;
}

    .box-btn:hover {
        background: #a50a2b;
        box-shadow: 0 6px 20px rgba(190, 11, 49, 0.3);
        transform: translateY(-1px);
        color: #fff;
        text-decoration: none;
    }

    .box-btn:active {
        transform: translateY(0);
        box-shadow: none;
    }

    .box-btn i {
        font-size: 13px;
        transition: transform 0.2s;
    }

    .box-btn:hover i {
        transform: translateX(-3px);
    }

/* ======================== */
/* Footer                   */
/* ======================== */
.box-footer {
    text-align: center;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid #f0f0f0;
}

    .box-footer span {
        font-size: 13px;
        color: #aaa;
    }

.box-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #be0b31;
    text-decoration: none;
    margin-right: 6px;
    transition: all 0.15s;
}

    .box-footer-link:hover {
        color: #a00a2a;
        text-decoration: none;
    }

    .box-footer-link i {
        font-size: 11px;
        transition: transform 0.2s;
    }

    .box-footer-link:hover i {
        transform: translateX(-3px);
    }

/* ======================== */
/* Validation               */
/* ======================== */
.box-form .validation-summary-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 12px;
    color: #dc2626;
    margin-bottom: 16px;
}

    .box-form .validation-summary-errors ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .box-form .validation-summary-errors ul li {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 2px 0;
        }

            .box-form .validation-summary-errors ul li::before {
                content: '\f06a';
                font-family: 'FontAwesome';
                font-size: 12px;
                color: #e53935;
            }

.box-input.input-validation-error {
    border-color: #e53935;
    background: #fff5f5;
}

    .box-input.input-validation-error:focus {
        box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.08);
    }

/* ======================== */
/* Override old layout       */
/* ======================== */
.box-page,
.box-page #main {
    background: #be0b31 !important;
}

    .box-page .col-lg-4,
    .box-page .col-md-6,
    .box-page .col-xs-12 {
        max-width: 100%;
        flex: none;
        padding: 0;
    }

    .box-page .account-box {
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

        .box-page .account-box::before {
            display: none !important;
        }

    .box-page .account-head-line {
        display: none !important;
    }

    .box-page .logo-account {
        display: none !important;
    }

/* ======================== */
/* Responsive               */
/* ======================== */
@media (max-width: 576px) {
    .box-btn-outline {
        height: 46px;
        font-size: 14px;
    }
    .box-page {
        padding: 16px 12px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .box-card {
        padding: 32px 20px 24px;
        border-radius: 20px;
    }

    .box-header-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
        border-radius: 14px;
    }

    .box-title {
        font-size: 18px;
    }

    .box-input {
        height: 46px;
        font-size: 13px;
    }

    .box-btn {
        height: 46px;
        font-size: 14px;
    }

    .box-bg-shape-1 {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -80px;
    }

    .box-bg-shape-2 {
        width: 200px;
        height: 200px;
    }
}
.validation-summary-errors ul{
    margin:0px;
}
.validation-summary-errors{
    border-radius:12px
}
/* Top: back + logo */
.box-top {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

    .box-top .box-logo {
        margin-bottom: 0;
        flex: 1;
        justify-content: center;
        margin-right: 32px;
    }

.box-back-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f5f5f5;
    color: #999;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s;
    flex-shrink: 0;
    order: 1;
}

    .box-back-btn:hover {
        background: #fef2f4;
        color: #be0b31;
        text-decoration: none;
    }
/* Status Icon (success/error) */
.box-status-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}

.box-status-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.box-status-error {
    background: #fef2f2;
    color: #dc2626;
}

/* Actions (button group) */
.box-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Outline Button */
.box-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    background: #fff;
    color: #be0b31;
    border: 1.5px solid #be0b31;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

    .box-btn-outline:hover {
        background: #be0b31;
        color: #fff;
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(190, 11, 49, 0.3);
    }

    .box-btn-outline:active {
        transform: translateY(0);
        box-shadow: none;
    }
/* ─── Pay Page (consistent with box.css) ─── */

/* Header */
.pay-header {
    text-align: center;
    margin-bottom: 24px;
}

.pay-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #fef2f4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: #be0b31;
    font-size: 22px;
}

.pay-title {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    margin: 0 0 4px;
}

.pay-subtitle {
    font-size: 13px;
    color: #aaa;
    margin: 0;
}

/* Cart Summary */
.pay-summary {
    background: #1e1e2e;
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

    .pay-summary::before {
        content: '';
        position: absolute;
        width: 140px;
        height: 140px;
        background: rgba(255,255,255,0.07);
        border-radius: 50%;
        top: -50px;
        left: -40px;
        pointer-events: none;
    }

    .pay-summary::after {
        content: '';
        position: absolute;
        width: 80px;
        height: 80px;
        background: rgba(255,255,255,0.05);
        border-radius: 50%;
        bottom: -20px;
        right: -10px;
        pointer-events: none;
    }

.pay-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
    opacity: 0.92;
    position: relative;
    z-index: 1;
}

    .pay-summary-row.is-discount {
        color: #ffcdd2;
    }

        .pay-summary-row.is-discount .pay-summary-val::before {
            content: '-';
        }

.pay-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*border-top: 1px solid rgba(255,255,255,0.2);*/
    /*margin-top: 10px;*/
    /*padding-top: 12px;*/
    font-size: 16px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.pay-show-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

    .pay-show-cart:hover {
        background: rgba(255,255,255,0.25);
        color: #fff;
        text-decoration: none;
    }

/* Credit Header */
.pay-credit-badge {
    text-align: center;
    background: #fef2f4;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
}

    .pay-credit-badge h5 {
        margin: 0;
        font-size: 16px;
        font-weight: 800;
        color: #be0b31;
    }

/* Alerts */
.pay-alert {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 16px;
    font-weight: 600;
}

.pay-alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Balance */
.pay-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #166534;
}

.pay-balance-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #16a34a;
    font-size: 15px;
}

.pay-balance-label {
    font-weight: 400;
    color: #666;
    font-size: 12px;
}

.pay-balance-value {
    font-weight: 700;
    color: #166534;
    font-size: 14px;
}

/* Payable Amount */
.pay-due {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #fef2f4;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.pay-due-label {
    color: #999;
    font-weight: 500;
    font-size: 13px;
}

.pay-due-value {
    font-weight: 800;
    color: #be0b31;
}

/* Gateway Selection */
.pay-gw-title {
    font-size: 13px;
    color: #888;
    font-weight: 600;
    margin-bottom: 12px;
}

.pay-gw-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.pay-gw-item {
    flex: 1 1 calc(50% - 5px);
    min-width: 130px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    border: 2px solid #eee;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

    .pay-gw-item:hover {
        border-color: #f8bbd0;
        background: #fef2f4;
    }

    .pay-gw-item.is-selected {
        border-color: #be0b31;
        background: #fef2f4;
        box-shadow: 0 0 0 3px rgba(190, 11, 49, 0.08);
    }

       /* .pay-gw-item.is-selected::after {
            content: '\f00c';
            font-family: 'FontAwesome';
            position: absolute;
            top: 8px;
            left: 8px;
            width: 20px;
            height: 20px;
            background: #be0b31;
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
        }*/

    .pay-gw-item img {
        max-height: 40px;
        width: auto;
        object-fit: contain;
        flex-shrink: 0;
    }

    .pay-gw-item .radioselect {
        display: none !important;
    }

    .pay-gw-item span {
        font-size: 13px;
        font-weight: 600;
        color: #333;
    }

/* Gateway Description */
.pay-gw-desc {
    background: #f9fafb;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #666;
    line-height: 1.8;
    border: 1px solid #f0f0f0;
}

/* VPN Warning */
.pay-vpn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #565656;
    font-weight: 700;
}

    .pay-vpn i {
        font-size: 18px;
        color: #f59e0b;
        flex-shrink: 0;
    }

/* Site Description */
.pay-site-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Validation */
.pay-validation {
    color: #dc2626;
    font-size: 12px;
    display: block;
    margin-top: 4px;
    margin-bottom: 8px;
}

/* No Gateway */
.pay-no-gw {
    text-align: center;
    padding: 24px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 14px;
    font-size: 13px;
    color: #92400e;
    font-weight: 600;
}

/* Pay from Balance */
.pay-balance-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

    .pay-balance-btn:hover {
        background: #15803d;
        box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3);
        transform: translateY(-1px);
    }

    .pay-balance-btn:active {
        transform: translateY(0);
        box-shadow: none;
    }

/* Main Pay Button */
/*.btn-raid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    background: #be0b31;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

    .btn-raid:hover {
        background: #a50a2b;
        box-shadow: 0 6px 20px rgba(190, 11, 49, 0.3);
        transform: translateY(-1px);
        color: #fff;
    }

    .btn-raid:active {
        transform: translateY(0);
        box-shadow: none;
    }*/

/* Footer */
.pay-home-link {
    display: block;
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

    .pay-home-link a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 700;
        color: #be0b31;
        text-decoration: none;
        transition: color 0.15s;
    }

        .pay-home-link a:hover {
            color: #a00a2a;
        }

        .pay-home-link a i {
            font-size: 11px;
            transition: transform 0.2s;
        }

        .pay-home-link a:hover i {
            transform: translateX(-3px);
        }

@media (max-width: 576px) {
    .pay-gw-item {
        flex: 1 1 100%;
    }

    .pay-summary-total {
        font-size: 15px;
    }
}

/* Header text inside summary (for wallet top-up mode) */
.pay-summary-header {
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

    .pay-summary-header i {
        margin-left: 6px;
    }

/* Highlighted payable amount row */
.pay-summary-due {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,0.25);
    font-weight: 700;
    font-size: 14px;
    opacity: 1;
}

/* ─── Select Payment Amount ─── */
.pay-amount-input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    background: #f9fafb;
    border: 1.5px solid #eee;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    text-align: center;
    transition: all 0.2s;
    margin-bottom: 6px;
}

    .pay-amount-input:focus {
        background: #fff;
        border-color: #be0b31;
        box-shadow: 0 0 0 4px rgba(190, 11, 49, 0.06);
    }

.pay-amount-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 10px;
    display: block;
}

.pay-amount-chips {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.pay-amount-chip {
    flex: 1;
    padding: 10px 4px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    background: #fafafa;
    color: #444;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .pay-amount-chip:hover {
        border-color: #be0b31;
        background: #fef2f4;
        color: #be0b31;
    }

    .pay-amount-chip:active {
        transform: scale(0.97);
    }
/* ─── Payment Result ─── */
.pay-result {
    text-align: center;
    padding: 10px 0;
}

.pay-result-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

    .pay-result-icon.is-success {
        background: #e8f5e9;
        color: #2e7d32;
    }

    .pay-result-icon.is-error {
        background: #fef2f2;
        color: #dc2626;
    }

.pay-result-title {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    margin: 0 0 8px;
}

.pay-result-text {
    font-size: 13px;
    color: #888;
    margin: 0 0 24px;
    line-height: 1.8;
}

.pay-result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}