/* ===================================================================
   SDEO AUTH SYSTEM STYLING: RE-ARCHITECTED SPLIT DISPLAY
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Dynamic Theme Variable Controls */
:root {
    --sdeo-primary-color: #7047eb;
    --sdeo-primary-hover: #502bbf;
    --sdeo-welcome-bg: linear-gradient(135deg, #0056b3 0%, #7047eb 100%);
    --sdeo-btn-text-color: #ffffff;
    --sdeo-success-green: #22c55e;
    --sdeo-success-green-bg: #f0fdf4;
    --sdeo-success-green-border: #dcfce7;
    --sdeo-success-green-text: #166534;
}

/* --- General Auth Page Wrapper --- */
.sdeo-registration-page-wrapper,
.sdeo-form-wrapper {
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f1f5f9;
    padding: 20px;
    box-sizing: border-box;
}

/* Split-Panel Frame Layout */
.sdeo-auth-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    min-height: 700px;
    box-sizing: border-box;
}

/* ===================================================================
   LEFT COLUMN: BLUE WELCOME GRAPHIC PANEL (Image 2)
   =================================================================== */
.sdeo-auth-welcome {
    position: relative;
    flex: 1.1;
    background: var(--sdeo-welcome-bg);
    color: #ffffff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

/* Graphic elements (Fluid Circles) */
.sdeo-auth-welcome::before,
.sdeo-auth-welcome::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.sdeo-auth-welcome::before {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -50px;
}
.sdeo-auth-welcome::after {
    width: 150px;
    height: 150px;
    top: -50px;
    right: -20px;
}

.sdeo-auth-welcome h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
    color: #ffffff !important;
}
.sdeo-auth-welcome h3 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 0 30px 0;
}
.sdeo-auth-welcome p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 380px;
}
.sdeo-welcome-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 18px;
    color: #ffd700;
}

/* ===================================================================
   RIGHT COLUMN: FORM WRAPPERS & TABS
   =================================================================== */
.sdeo-auth-form-wrapper {
    flex: 1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    background: #ffffff;
}

/* Tab Switcher Styles */
.sdeo-tabs-switcher {
    display: flex;
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
    border-bottom: 2px solid #f1f5f9;
}
.sdeo-tabs-switcher li {
    margin-right: 30px;
}
.sdeo-tabs-switcher li a {
    display: block;
    padding-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
.sdeo-tabs-switcher li.active a {
    color: var(--sdeo-primary-color);
    border-bottom-color: var(--sdeo-primary-color);
}

.sdeo-auth-form-box h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
}
.sdeo-form-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 25px 0;
}

/* ===================================================================
   UNIFORM PROFESSIONAL INPUT STYLING
   =================================================================== */
.sdeo-input-group {
    position: relative;
    margin-bottom: 18px;
    text-align: left;
}
.sdeo-input-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sdeo-input-group label .required {
    color: #dc3545;
    margin-left: 4px;
}
.sdeo-input-group input[type="text"],
.sdeo-input-group input[type="email"],
.sdeo-input-group input[type="password"],
.sdeo-input-group select,
.sdeo-input-group textarea {
    width: 100%;
    height: 46px;
    padding: 10px 16px !important; /* Balanced fallback padding when no icon is present */
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    box-sizing: border-box;
    transition: all 0.2s ease;
    margin: 0 !important;
}
.sdeo-input-group textarea {
    height: auto !important;
    padding: 12px 16px !important;
}
.sdeo-input-group input:focus,
.sdeo-input-group select:focus,
.sdeo-input-group textarea:focus {
    border-color: var(--sdeo-primary-color) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(112, 71, 235, 0.1);
    outline: 0;
}

/* Conditionally add left padding ONLY when a sibling input icon is present */
.sdeo-input-icon ~ input[type="text"],
.sdeo-input-icon ~ input[type="email"],
.sdeo-input-icon ~ input[type="password"],
.sdeo-input-icon ~ select {
    padding-left: 42px !important;
}

.sdeo-input-icon {
    position: absolute;
    left: 15px;
    bottom: 14px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}
.sdeo-pwd-toggle {
    position: absolute;
    right: 15px;
    bottom: 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--sdeo-primary-color);
    cursor: pointer;
    user-select: none;
    z-index: 15;
}

.sdeo-input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0 !important;
}
.sdeo-input-row .sdeo-input-group {
    flex: 1;
}

/* Alignment fixes for remember-me and lost password (Image 5) */
.sdeo-login-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
}
.sdeo-remember-me-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #475569;
    white-space: nowrap;
}
.sdeo-remember-me-checkbox input {
    margin-right: 8px !important;
    width: auto !important;
    height: auto !important;
}
.sdeo-lost-pwd-link {
    color: var(--sdeo-primary-color) !important;
    text-decoration: none !important;
    font-weight: 500;
    white-space: nowrap;
    text-align: right;
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.sdeo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    padding: 0 !important;
    transition: all 0.2s ease-in-out;
}
.sdeo-btn-primary {
    background: var(--sdeo-primary-color) !important;
    color: var(--sdeo-btn-text-color) !important;
}
.sdeo-btn-primary:hover {
    background: var(--sdeo-primary-hover) !important;
}
.sdeo-btn-primary:disabled {
    background: #cbd5e1 !important;
    cursor: not-allowed;
    color: #94a3b8 !important;
}
.sdeo-btn-secondary {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}
.sdeo-btn-secondary:hover {
    background: #f8fafc !important;
}

.sdeo-login-separator {
    position: relative;
    text-align: center;
    margin: 20px 0;
}
.sdeo-login-separator::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}
.sdeo-login-separator span {
    position: relative;
    z-index: 5;
    background: #ffffff;
    padding: 0 15px;
    font-size: 12px;
    color: #94a3b8;
}

.sdeo-switch-prompt {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 25px;
}
.sdeo-switch-prompt a {
    color: var(--sdeo-primary-color) !important;
    font-weight: 600;
    text-decoration: none !important;
}

/* ===================================================================
   PROGRESS TRACKER SYSTEM (Image 2)
   =================================================================== */
.sdeo-wizard-progress-hub {
    margin-bottom: 25px;
}
.sdeo-progress-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sdeo-primary-color);
    margin-bottom: 8px;
    text-align: left;
}
.sdeo-progress-bar-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 18px;
}
.sdeo-progress-bar-fill {
    height: 100%;
    background: var(--sdeo-primary-color);
    border-radius: 3px;
    transition: width 0.35s ease;
}
.sdeo-steps-indicators {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 5px;
}
.sdeo-steps-indicators::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}
.step-dot {
    position: relative;
    z-index: 5;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.step-dot.active {
    border-color: var(--sdeo-primary-color);
    background: var(--sdeo-primary-color);
    color: #ffffff;
}

/* Step wrappers */
.sdeo-wizard-step {
    display: none;
}
.sdeo-wizard-step.active {
    display: block;
}

.sdeo-step-header-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

/* ===================================================================
   STEP CARD DECORATIONS (Image 3 Floating Badge & Color Accents)
   =================================================================== */
.sdeo-active-step-card {
    position: relative;
    border: 2px solid var(--sdeo-primary-color) !important;
    border-top: 6px solid var(--sdeo-primary-color) !important;
    border-radius: 12px !important;
    padding: 30px !important;
    background: linear-gradient(180deg, rgba(112, 71, 235, 0.01) 0%, #ffffff 100%) !important;
    box-sizing: border-box;
}

/* Floating step badge icon on the top-right corner of the active card */
.sdeo-step-icon {
    position: absolute;
    top: -28px;
    right: -14px;
    width: 56px;
    height: 56px;
    background: #ffffff;
    border: 2px solid var(--sdeo-primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--sdeo-primary-color);
    box-shadow: 0 4px 12px rgba(112, 71, 235, 0.15);
    z-index: 99;
    transition: transform 0.2s ease;
}
.sdeo-step-icon:hover {
    transform: scale(1.08) rotate(5deg);
}

/* Step footer navigation link back to Login */
.sdeo-wizard-footer-login {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}
.sdeo-btn-back-login {
    display: inline-block;
    color: var(--sdeo-primary-color) !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.sdeo-btn-back-login:hover {
    color: var(--sdeo-primary-hover) !important;
}

/* ===================================================================
   STEP 2: PAYMENT METHOD LAYOUTS
   =================================================================== */
.sdeo-payment-method-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}
.sdeo-payment-card-option {
    display: block;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}
.sdeo-payment-card-option input[type="radio"] {
    display: none;
}
.sdeo-payment-card-design {
    display: block;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-align: left;
}
.sdeo-payment-card-option input[type="radio"]:checked + .sdeo-payment-card-design {
    border-color: var(--sdeo-primary-color);
    background: rgba(112, 71, 235, 0.03);
    box-shadow: 0 0 0 3px rgba(112, 71, 235, 0.08);
}
.sdeo-payment-card-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
}
.sdeo-payment-card-sub {
    display: block;
    font-size: 11px;
    color: #64748b;
}

/* Payment Sub-inputs Details Layout */
.sdeo-payment-details-inputs {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-top: -6px;
    margin-bottom: 8px;
    box-sizing: border-box;
}

/* USA DYNAMIC ORANGE ALERT */
.sdeo-orange-warning-box {
    display: none;
    background: #fff8f1;
    border: 1px solid #ffedd5;
    border-left: 4px solid #ea580c;
    border-radius: 8px;
    padding: 15px 18px;
    margin-bottom: 25px;
    text-align: left;
}
.sdeo-warning-header {
    font-size: 13px;
    font-weight: 700;
    color: #c2410c;
    margin-bottom: 8px;
}
.sdeo-warning-header i {
    margin-right: 6px;
}
.sdeo-orange-warning-box p {
    font-size: 12px;
    color: #ea580c;
    margin: 0 0 8px 0;
}
.sdeo-orange-warning-box ul {
    margin: 0 0 10px 15px;
    padding: 0;
}
.sdeo-orange-warning-box ul li {
    font-size: 12px;
    color: #c2410c;
    font-weight: 600;
    margin-bottom: 4px;
}
.sdeo-warning-footer-note {
    font-size: 11px;
    color: #9a3412;
}

/* ===================================================================
   STEP 3: FILE UPLOAD WRAPPERS (MODIFIED TO SUPPORT TWO ROWS)
   =================================================================== */
.sdeo-file-upload-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;         /* Arranges elements in rows */
    align-items: flex-start;        /* Left-aligns button and file name */
    justify-content: center;
    width: 100%;
    height: 70px;                   /* Increased wrapper height to hold two rows */
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    box-sizing: border-box;
    cursor: pointer;
}
.sdeo-file-upload-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0 !important;
    cursor: pointer;
    z-index: 10;
}
.sdeo-file-button {
    display: inline-block;
    padding: 5px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    margin-bottom: 6px;             /* Creates separation above the filename label */
    pointer-events: none;
}
.sdeo-file-name {
    font-size: 12px;
    color: #64748b;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;                /* Allows full horizontal expansion on second row */
}
.sdeo-file-error {
    display: none;
    color: #dc3545;
    font-size: 11px;
    margin-top: 4px;
    text-align: left;
}

.sdeo-conditional-upload-box {
    display: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}
.sdeo-conditional-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
    text-align: left;
}

.sdeo-tc-checkbox-row {
    margin-top: 15px;
}
.sdeo-tc-checkbox-row a {
    color: var(--sdeo-primary-color);
    text-decoration: none !important;
    font-weight: 600;
}

.sdeo-wizard-navigation {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

/* ===================================================================
   STEP 4: SUCCESS LAYOUTS (Image 1 - Complete & Success Card)
   =================================================================== */
.sdeo-step-success-screen {
    text-align: center;
    padding: 20px 0;
}
.sdeo-success-icon-wrap {
    margin-bottom: 25px;
}
.sdeo-success-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--sdeo-success-green);
    color: #ffffff;
    border-radius: 50%;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(34,197,94,0.3);
}
.sdeo-step-success-screen h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
}
.sdeo-success-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    margin: 0 0 30px 0;
}
.sdeo-success-info-box {
    background: var(--sdeo-success-green-bg);
    border: 1px solid var(--sdeo-success-green-border);
    border-radius: 10px;
    padding: 18px 24px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--sdeo-success-green-text);
    max-width: 480px;
    margin: 0 auto 35px auto;
}
.sdeo-success-info-box strong {
    color: var(--sdeo-success-green-text);
    font-weight: 700;
}
.sdeo-success-action-wrap {
    max-width: 250px;
    margin: 0 auto;
}

/* ===================================================================
   EXISTING STATUS INDICATORS & WOOMESSAGE INTEGRATION
   =================================================================== */
.sdeo-validation-status {
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 10px;
}
.sdeo-validation-status.available {
    color: var(--sdeo-success-green);
}
.sdeo-validation-status.not-available {
    color: #dc3545;
}

.sdeo-error-alert,
.woocommerce-error {
    padding: 1em 1.5em;
    border-radius: 8px;
    margin-bottom: 2em;
    text-align: left;
    list-style: none !important;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
    font-size: 13px;
}
.sdeo-error-alert p,
.woocommerce-error p {
    margin: 0;
    padding: 0;
}

.woocommerce-message {
    border-top: 3px solid #008a3c;
    background-color: #f1f8f5;
    color: #0f834d;
    padding: 1em 2em !important;
    margin: 0 0 2em !important;
    position: relative;
    border-radius: 5px;
    list-style: none outside !important;
}

/* Clean duplicate password UI fix */
.woocommerce-password-strength ~ .show-password-input {
    display: none !important;
}

/* ===================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   =================================================================== */
@media (max-width: 768px) {
    .sdeo-registration-page-wrapper,
    .sdeo-form-wrapper {
        padding: 10px;
    }
    .sdeo-auth-container {
        flex-direction: column;
        min-height: auto;
        border-radius: 12px;
    }
    .sdeo-auth-welcome {
        display: none;
    }
    .sdeo-auth-form-wrapper {
        padding: 30px 20px;
    }
    .sdeo-input-row {
        flex-direction: column;
        gap: 0;
    }
    .sdeo-payment-details-inputs {
        padding: 10px;
    }
}