/* ============================================================
   KV HERBALS — Registration Success Popup (Premium Theme)
   File: Login/RegistrationSuccess.css
   Link this AFTER Login.css and Registration.css in <head>
   ============================================================ */

/* ── Background overlay behind the popup ── */
.modalBackground {
    background: radial-gradient(circle at center, rgba(6, 46, 30, 0.85) 0%, rgba(0, 0, 0, 0.88) 100%);
    backdrop-filter: blur(4px);
}

/* ── Popup container (asp:Panel PanelsalesList) ── */
.modalPopup1 {
    background: transparent;
    width: 440px;
    max-width: 92vw;
    height: auto;
    font-family: 'Segoe UI', 'Poppins', sans-serif;
    animation: kvPopupIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes kvPopupIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Modal shell ── */
.modalPopup1 .modal-dialog {
    margin: 0;
}

.modalPopup1 .modal-content {
    background: #ffffff;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(0, 40, 20, 0.45),
        0 0 0 1px rgba(212, 175, 55, 0.25);
    position: relative;
}

/* Thin gold top accent bar */
.modalPopup1 .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0b3d24, #d4af37, #0b3d24);
    background-size: 200% 100%;
    animation: kvShimmer 3s linear infinite;
}

@keyframes kvShimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ── Header ── */
.modalPopup1 .modal-header {
    background: linear-gradient(135deg, #0b3d24 0%, #145c37 100%);
    padding: 32px 28px 60px 28px;
    border: none;
    position: relative;
    text-align: center;
    display: block;
}

.modalPopup1 .modal-header .close {
    position: absolute;
    top: 14px;
    right: 16px;
    color: #ffffff;
    opacity: 0.7;
    font-size: 22px;
    font-weight: 300;
    background: rgba(255, 255, 255, 0.12);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    line-height: 28px;
    text-align: center;
    transition: all 0.2s ease;
}

.modalPopup1 .modal-header .close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.modalPopup1 .modal-header h4 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
}

.modalPopup1 .modal-header h4 a {
    display: block;
    color: #d4af37;
    font-size: 15px;
    font-weight: 600;
    margin-top: 6px;
    text-decoration: none;
    letter-spacing: 1px;
}

/* Success checkmark badge — floats over header/body seam */
.modalPopup1 .modal-header::after {
    content: "✓";
    position: absolute;
    left: 50%;
    bottom: -38px;
    transform: translateX(-50%);
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #d4af37, #f5d576);
    color: #0b3d24;
    font-size: 38px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 20px rgba(212, 175, 55, 0.45),
        0 0 0 6px #ffffff;
    animation: kvCheckPop 0.5s 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes kvCheckPop {
    0% { transform: translateX(-50%) scale(0); }
    70% { transform: translateX(-50%) scale(1.15); }
    100% { transform: translateX(-50%) scale(1); }
}

/* ── Body ── */
.modalPopup1 .modal-body {
    padding: 54px 30px 20px 30px;
    text-align: center;
}

.modalPopup1 .modal-body p {
    margin: 0;
    color: #2c3e2f;
    font-size: 15px;
    line-height: 1.8;
}

.modalPopup1 .modal-body p strong,
.modalPopup1 .modal-body p b {
    color: #0b3d24;
}

/* Style the member-details literal like a receipt/info card */
.modalPopup1 .modal-body {
    font-variant-numeric: tabular-nums;
}

/* ── Footer ── */
.modalPopup1 .modal-footer {
    border: none;
    padding: 10px 30px 32px 30px;
    display: flex;
    justify-content: center;
}

.modalPopup1 .modal-footer .btn,
.modalPopup1 .modal-footer input[type=submit],
.modalPopup1 .modal-footer #OkButton {
    background: linear-gradient(135deg, #0b3d24, #1c6b41);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 46px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 18px rgba(11, 61, 36, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.modalPopup1 .modal-footer .btn:hover,
.modalPopup1 .modal-footer input[type=submit]:hover,
.modalPopup1 .modal-footer #OkButton:hover {
    background: linear-gradient(135deg, #145c37, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(11, 61, 36, 0.4);
}

.modalPopup1 .modal-footer .btn:active {
    transform: translateY(0);
}

/* ── Member welcome name ── */
.kv-welcome-name {
    font-size: 20px;
    font-weight: 700;
    color: #0b3d24;
    margin-bottom: 10px;
}

/* ── Welcome message ── */
.kv-welcome-msg {
    font-size: 14px;
    line-height: 1.7;
    color: #4a5a4c;
    margin: 0 0 22px 0;
}

/* ── Credentials card ── */
.kv-credential-card {
    background: linear-gradient(135deg, #f8f6ef 0%, #f1ede0 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    padding: 4px 20px;
    margin-bottom: 18px;
    text-align: left;
}

.kv-credential-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.kv-credential-row + .kv-credential-row {
    border-top: 1px dashed rgba(11, 61, 36, 0.18);
}

.kv-credential-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7a6d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kv-credential-value {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 8px;
}

.kv-userid {
    color: #0b3d24;
    background: rgba(11, 61, 36, 0.08);
}

.kv-password {
    color: #a5290b;
    background: rgba(165, 41, 11, 0.08);
}

/* ── Small helper note ── */
.kv-note {
    font-size: 12.5px;
    color: #8a8a8a;
    font-style: italic;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .modalPopup1 {
        width: 92vw;
    }

    .modalPopup1 .modal-header {
        padding: 26px 18px 55px 18px;
    }

    .modalPopup1 .modal-body {
        padding: 48px 20px 16px 20px;
    }

    .modalPopup1 .modal-header h4 {
        font-size: 20px;
    }
}
