/* ── Global Layout: Split Screen Container ── */
.cazp-login-page #page-container,
.cazp-login-page #main-content,
.cazp-login-page #et-main-area,
.cazp-login-page .container,
.cazp-login-page #content-area {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
}

/* Hide Redundant Theme Elements */
.cazp-login-page #main-header,
.cazp-login-page #main-footer,
.cazp-login-page .entry-title,
.cazp-login-page .et_post_meta_wrapper {
    display: none !important;
}

.cazp-login-page .et_pb_section,
.cazp-login-page .et_pb_row,
.cazp-login-page .et_pb_column,
.cazp-login-page .et_pb_module {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ── Main Split Container ── */
.cazp-login-split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    z-index: 9999;
    /* Solid branding red matching the screenshot */
    background: #8b1d22;
}

.cazp-2fa-setup-full-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ede7e7;
    z-index: 99999; 
    overflow-y: auto;
}

/* ── Decorative Overlay ── */
.cazp-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle dark vignette for depth */
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
        linear-gradient(160deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Left Side: Branding Panel */
.cazp-login-left-side {
    flex: 0 0 55% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    position: relative !important;
    z-index: 2 !important;
    overflow: hidden !important;
    margin-top: -1px !important;
    background: #8b1d22 !important;
}

/* Background gradient refinement */
.cazp-login-left-side::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: radial-gradient(circle at center, rgba(139, 29, 34, 0.5) 0%, rgba(139, 29, 34, 0.9) 100%) !important;
    z-index: -1 !important;
}

.cazp-left-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cazp-logo-wrapper {
    margin-bottom: 20px;
}

.cazp-logo-circle {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.cazp-logo-circle img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Company Name: Prominent but professional */
.cazp-company-name {
    font-family: 'DM Serif Text', 'Playfair Display', Georgia, "Times New Roman", serif !important;
    font-size: 44px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 25px !important;
    letter-spacing: 0.02em !important;
    line-height: 1.1 !important;
    text-align: center !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.cazp-hero-text {
    margin-bottom: 30px !important;
    width: 100% !important;
}

.cazp-hero-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

.cazp-hero-sublines {
    margin-bottom: 30px !important;
}

.cazp-subline {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 6px 0 !important;
    letter-spacing: 0.01em !important;
    padding-bottom: 0 !important;
    text-align: center !important;
}

.cazp-hero-phone {
    font-family: 'Inter', sans-serif !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin-top: 15px !important;
    letter-spacing: 0.02em !important;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
}

.cazp-hero-phone i {
    font-size: 0.75em !important;
    opacity: 0.9 !important;
    vertical-align: middle !important;
    position: relative !important;
    top: -2px !important;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3)) !important;
}

.cazp-contact-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-top: auto !important;
    padding-top: 10px !important;
}

.cazp-contact-links {
    display: flex !important;
    gap: 40px !important;
}

.cazp-link {
    font-family: 'Inter', sans-serif !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.cazp-link:hover {
    color: #fff !important;
    transform: translateX(5px) !important;
}

/* Right Side: Form Panel — Premium Light Theme */
.cazp-login-right-side {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f3eded; /* Matching the light warm gray in the screenshot */
    position: relative;
    z-index: 2;
    overflow: hidden;
    margin-top: -1px;
}

/* Decorative soft circle blobs */
.cazp-login-right-side::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 29, 34, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Form Glass Container */
.cazp-form-glass-container {
    width: 100%;
    max-width: 460px;
    animation: fadeInRight 0.8s ease-out;
}

/* Shared 2FA Verification Input (used in Setup & Login) */
.cazp-2fa-verify-input {
    width: 100% !important;
    height: 60px !important;
    background: #ffffff !important;
    border: 2px solid #8b1d22 !important;
    border-radius: 14px !important;
    font-size: 32px !important;
    letter-spacing: 0.5em !important;
    text-indent: 0.25em !important; /* Offset since centering ignores trailing spacing */
    text-align: center !important;
    font-weight: 800 !important;
    color: #1a0608 !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s ease !important;
}

.cazp-2fa-verify-input:focus {
    border-color: #c0392b !important;
    background-color: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(139, 29, 34, 0.1) !important;
}

.cazp-2fa-verify-input::placeholder {
    color: #b89898 !important;
    letter-spacing: normal !important;
    text-indent: 0 !important;
}

/* 2FA Input Label */
.cazp-2fa-input-label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a0608 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    font-family: 'Inter', sans-serif !important;
    text-transform: none !important;
}

/* Cleanup for the default WP-2FA instructions message */
.cazp-login-right-side p:not(.cazp-2fa-form-subtitle) {
    font-size: 14px !important;
    color: #8a7070 !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

/* Global Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .cazp-login-left-side {
        flex: 0 0 50%;
    }

    .cazp-login-right-side {
        flex: 0 0 50%;
    }
}

/* ── iPad / Tablet (≤992px) ── */
@media (max-width: 992px) {
    body.cazp-login-page,
    html:has(body.cazp-login-page) {
        overflow: auto !important;
        height: auto !important;
    }

    .cazp-login-split-container {
        flex-direction: column;
        min-height: 100vh;
        width: 100%;
        height: auto;
        overflow: visible;
        position: relative;
    }

    .cazp-login-left-side,
    .cazp-login-right-side {
        flex: 0 0 100%;
        width: 100%;
        padding: 50px 40px;
    }

    .cazp-login-left-side {
        height: auto;
    }

    .cazp-logo-circle {
        width: 140px;
        height: 140px;
    }

    .cazp-company-name {
        font-size: 32px;
    }

    .cazp-hero-title {
        font-size: 26px;
    }

    .cazp-hero-phone {
        font-size: 28px;
    }

    .cazp-contact-links {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cazp-form-glass-container {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ── Mobile (≤600px) ── */
@media (max-width: 600px) {
    .cazp-login-left-side,
    .cazp-login-right-side {
        padding: 36px 20px;
    }

    .cazp-logo-circle {
        width: 120px;
        height: 120px;
    }

    .cazp-company-name {
        font-size: 30px !important;
        letter-spacing: 0.02em !important;
        margin-bottom: 15px !important;
    }

    .cazp-hero-title {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }

    .cazp-subline {
        font-size: 15px !important;
    }

    .cazp-hero-phone {
        font-size: 26px !important;
        gap: 10px !important;
        margin-top: 15px !important;
    }

    .cazp-contact-links {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }
}

/* ── Short viewport (desktop, short screen) ── */
@media (max-height: 800px) and (min-width: 993px) {
    .cazp-logo-circle {
        width: 140px;
        height: 140px;
    }

    .cazp-hero-text {
        margin-bottom: 25px;
    }

    .cazp-text-line {
        font-size: 26px;
    }
}

