/* login popup — username.html
   tebex's default modal is fugly, this replaces the inner content
   keep the !important on the popup.login-popup overrides — tebex
   ships inline styles with stupid specificity */

.site-content main {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-popup-custom {
    text-align: center;
    padding: 40px 36px;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    color: white;
    width: 460px;
    max-width: 95vw;
    margin: 0 auto !important;
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
    font-family: 'Inter', sans-serif;
    transform: translateY(0) !important;
}

.login-header-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 26px;
    padding-top: 0;
    height: 36px;
}

/* store logo — tebex serves it at random aspect ratios so cap both axes */

.login-logo-img {
    height: 30px !important;
    max-height: 30px !important;
    width: auto !important;
    max-width: 90px !important;
    object-fit: contain;
    display: inline-block;
}

.login-x-icon {
    color: #555;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.cfx-logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cfx-logo-container svg {
    height: 28px;
    width: auto;
}

.login-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    line-height: 1.1;
}

.login-subtitle {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 28px;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

.login-btn-cfx {
    background: #fff !important;
    color: #000 !important;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    margin-bottom: 24px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    text-transform: none;
}

.login-btn-cfx:hover {
    transform: translateY(-3px);
    background: #f8f8f8 !important;
}

.login-btn-cfx:active {
    transform: translateY(1px);
}

.login-footer {
    color: #555;
    font-size: 12px;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 22px;
    line-height: 1.6;
    font-weight: 500;
}

.login-footer a {
    color: #888;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 5px;
    display: inline-block;
}

.login-footer a:hover {
    color: #ef4444;
    letter-spacing: 1.5px;
}

.popup-close-custom {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.4);
    padding: 0;
    z-index: 10;
}

.popup-close-custom:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: rotate(90deg) scale(1.1);
}

/* tebex modal overrides — DO NOT remove !important here, tebex inlines its own styles */

body .popup.login-popup {
    position: fixed !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    z-index: 99999 !important;
    padding-top: 0 !important;
    box-sizing: border-box !important;
}
