/* TechVizo User Module - Critical Popup CSS
 * Extracted from templates/popup.php inline <style> block
 */

/* ── Field Error (absolute badge style) ── */
.tvum-field-error {
    margin-top: 0px;
    color: var(--tvum-error-color, #ef4444);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    position: absolute;
    top: 14px;
    right: 16px;
    background: #fff;
    border: 1px solid red;
    padding: 1px 6px;
    border-radius: 100px;
}

/* ── Back Button ── */
.tvum-back-btn.tvum-panel-switch {
    display: flex;
    align-items: center;
    margin: 10px 0px;
}

/* ── Overlay Base ── */
.tvum-overlay {
    position: fixed ;
    inset: 0 ;
    z-index: 999999 ;
    display: flex ;
    align-items: center;
    justify-content: center;
    padding: 16px ;
    background: var(--tvum-overlay-bg, rgba(10, 15, 60, .75)) ;
    opacity: 0 ;
    visibility: hidden ;
    pointer-events: none ;
    box-sizing: border-box ;
}

/* ── Layout Variants ── */
.tvum-layout-slide-left {
    align-items: stretch ;
    justify-content: flex-start ;
    padding: 0 ;
}

.tvum-layout-slide-right {
    align-items: stretch ;
    justify-content: flex-end ;
    padding: 0 ;
}

#tvum-overlay.tvum-layout-bottom-bar {
    align-items: flex-end ;
    justify-content: center ;
    padding: 0 ;
}

.tvum-layout-top-bar {
    align-items: flex-start ;
    justify-content: center ;
    padding: 0 ;
}

.tvum-layout-corner-br {
    justify-content: flex-end ;
    align-items: flex-end ;
}

.tvum-layout-corner-bl {
    justify-content: flex-start ;
    align-items: flex-end ;
}

.tvum-layout-corner-tr {
    justify-content: flex-end ;
    align-items: flex-start ;
}

.tvum-layout-corner-tl {
    justify-content: flex-start ;
    align-items: flex-start ;
}

/* ── Active State ── */
.tvum-overlay.tvum-active {
    opacity: 1 ;
    visibility: visible ;
    pointer-events: auto ;
}

/* ── Popup Card ── */
.tvum-overlay .tvum-popup {
    position: relative ;
    width: 100% ;
    max-width: var(--tvum-width, 480px) ;
    max-height: 90vh ;
    overflow-y: auto ;
    background: var(--tvum-popup-bg, #fff) ;
    border-radius: var(--tvum-radius, 20px) ;
    padding: 40px 44px 36px ;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .18), 0 8px 24px rgba(0, 0, 0, .1) ;
    box-sizing: border-box ;
}

/* ── Hidden Utility ── */
.tvum-overlay .tvum-hidden {
    display: none ;
}

/* ── Inactive Popup ── */
#tvum-overlay:not(.tvum-active) .tvum-popup {
    pointer-events: none ;
}

/* ── Close Button ── */
.tvum-overlay .tvum-close {
    position: absolute ;
    top: 16px ;
    right: 16px ;
    width: 36px ;
    height: 36px ;
    border: 0 ;
    border-radius: 50% ;
    background: #f1f5f9 ;
    display: flex ;
    align-items: center ;
    justify-content: center ;
    cursor: pointer ;
}

/* ── Typography ── */
.tvum-overlay .tvum-heading {
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--tvum-heading-color, #0f172a);
}

.tvum-overlay .tvum-subtext {
    font-size: .9rem;
    line-height: 1.5;
    margin: 0 0 24px;
    color: var(--tvum-text-color, #64748b);
}

/* ── Form Fields ── */
.tvum-overlay .tvum-field {
    margin-bottom: 16px;
}

.tvum-overlay .tvum-field label {
    display: block;
    margin-bottom: 7px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--tvum-heading-color, #0f172a);
}

.tvum-overlay .tvum-field input[type=text],
.tvum-overlay .tvum-field input[type=email],
.tvum-overlay .tvum-field input[type=password] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--tvum-input-border, #e8eaf0);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--tvum-heading-color, #0f172a);
    box-sizing: border-box;
    font-size: .9rem;
}

.tvum-overlay .tvum-field-error {
    display: none;
    margin-top: 6px;
    color: var(--tvum-error-color, #ef4444);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.35;
}

/* ── Primary Button ── */
.tvum-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 0;
    border-radius: 12px;
    background: var(--tvum-accent, #4361ee);
    color: var(--tvum-btn-text, #fff);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

/* ── Social Login ── */
.tvum-overlay .tvum-social-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.tvum-overlay .tvum-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border: 1.5px solid var(--tvum-input-border, #e8eaf0);
    border-radius: 12px;
    background: #fff;
    color: var(--tvum-heading-color, #0f172a);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
}

.tvum-overlay .tvum-social-btn-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.tvum-social-btn-wrap .tvum-social-btn {
    width: 100%;
    pointer-events: none;
}

/* ── Google Host ── */
.tvum-google-host {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    opacity: .011;
    overflow: hidden;
    border-radius: 12px;
}

.tvum-google-host > div {
    width: 100% ;
    height: 100% ;
}

/* ── Divider ── */
.tvum-overlay .tvum-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    color: var(--tvum-text-color, #64748b);
    font-size: .8rem;
}

.tvum-overlay .tvum-divider:before,
.tvum-overlay .tvum-divider:after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--tvum-input-border, #e8eaf0);
}

/* ── Row Between ── */
.tvum-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

/* ── Password Wrap ── */
.tvum-pw-wrap {
    position: relative;
}

.tvum-pw-wrap input {
    padding-right: 46px;
}

.tvum-pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

/* ── Footer ── */
.tvum-overlay .tvum-footer-text {
    text-align: center;
    font-size: .875rem;
    color: var(--tvum-text-color, #64748b);
    margin-top: 18px;
}

.tvum-overlay .tvum-link {
    color: var(--tvum-link-color, #4361ee);
    font-weight: 600;
    text-decoration: none;
}

/* ── Body Scroll Lock ── */
body.tvum-no-scroll {
    overflow: hidden ;
}