/* ============================================================
   NXY B2B — Wholesale Auth Pages
   Apple Liquid Glass + Animated Aurora Background v4
   2026-02-28
   ============================================================ */

/* === FONTS === */
/* Inter Variable Font — matches nxy.css */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("/themes/nxy/assets/fonts/InterVariable.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("/themes/nxy/assets/fonts/InterVariable-ext.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1EFF}

*, *::before, *::after { box-sizing: border-box; }

/* ============================================================
   UTILITY CLASSES (Bootstrap replacements)
   ============================================================ */
.hide { display: none !important; }
.show { display: block !important; }
.pull-left { float: left; }
.pull-right { float: right; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   ANIMATED AURORA BACKGROUND
   ============================================================ */

/* WebGL Aurora Canvas */
#nxy-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

main.ets-ws-page {
    background: #0a0e1a !important;
    background-image: none !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* Aurora orb 1 — large cyan */
main.ets-ws-page::before {
    content: '';
    position: absolute;
    top: -15%;
    left: -5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.35) 0%, rgba(0, 122, 255, 0.12) 35%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: auroraOrb1 12s ease-in-out infinite alternate;
    filter: blur(30px);
}

/* Aurora orb 2 — blue-violet */
main.ets-ws-page::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -8%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 80, 240, 0.35) 0%, rgba(100, 80, 240, 0.1) 35%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: auroraOrb2 14s ease-in-out infinite alternate;
    filter: blur(40px);
}

/* Extra aurora layers via the clearfix divs */
.ets-ws-page > .clearfix:first-of-type {
    position: absolute;
    top: 30%;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 210, 180, 0.3) 0%, rgba(0, 210, 180, 0.08) 35%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: auroraOrb3 16s ease-in-out infinite alternate;
    filter: blur(50px);
}

.ets-ws-page > .clearfix:last-of-type {
    position: absolute;
    bottom: 20%;
    left: 20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 100, 150, 0.25) 0%, rgba(255, 100, 150, 0.06) 35%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: auroraOrb4 10s ease-in-out infinite alternate;
    filter: blur(45px);
}

/* Ambient particle shimmer overlay */
.ets-ws-page .login-page,
.ets-ws-page .reset-password,
.ets-ws-page .password-new-page,
.ets-ws-page section.register-form,
.ets-ws-page .auth-page {
    position: relative;
    z-index: 1;
}

@keyframes auroraOrb1 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
    33%  { transform: translate(80px, 40px) scale(1.15); opacity: 0.9; }
    66%  { transform: translate(-30px, 80px) scale(0.95); opacity: 0.6; }
    100% { transform: translate(50px, -20px) scale(1.1); opacity: 0.8; }
}
@keyframes auroraOrb2 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.6; }
    33%  { transform: translate(-60px, -50px) scale(1.2); opacity: 0.85; }
    66%  { transform: translate(40px, -30px) scale(0.9); opacity: 0.5; }
    100% { transform: translate(-40px, 30px) scale(1.05); opacity: 0.75; }
}
@keyframes auroraOrb3 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50%  { transform: translate(-70px, 50px) scale(1.1); opacity: 0.8; }
    100% { transform: translate(30px, -40px) scale(0.95); opacity: 0.6; }
}
@keyframes auroraOrb4 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50%  { transform: translate(60px, -30px) scale(1.15); opacity: 0.7; }
    100% { transform: translate(-20px, 40px) scale(0.9); opacity: 0.5; }
}

/* Subtle noise texture for depth */
.ets-ws-page .login-page::before,
.ets-ws-page section.register-form::before,
.ets-ws-page .auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* ============================================================
   TABLE LAYOUT RESET — Universal for all 3 pages
   ============================================================ */
.ets-ws-page .ets_table1 {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: auto !important;
    min-height: auto;
    width: 100%;
}
.ets-ws-page .ets_table1-cell {
    display: block !important;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   NXY LOGO — Replace COMPANY NAME image
   ============================================================ */
.ets-ws-page .form-logo {
    display: flex;
    justify-content: center;
    padding: 0;
    margin-bottom: 12px;
}
.ets-ws-page .form-logo .img-logo {
    display: none !important;
}
.ets-ws-page .form-logo .link-to-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}
.ets-ws-page .form-logo .link-to-home::before {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(150deg, #1a3555 0%, #1e5080 35%, #2870a8 65%, #3090c0 100%);
    border-radius: 12px;
    border: 0.5px solid rgba(255,255,255,.1);
    box-shadow: 0 0 0 0.5px rgba(255,255,255,.08), 0 2px 8px rgba(0,0,0,.25), 0 0 16px rgba(40,200,160,0.06);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='42' y1='0' x2='58' y2='100' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0%25' stop-color='%2350FFB0'/%3E%3Cstop offset='15%25' stop-color='%2335ECAA'/%3E%3Cstop offset='30%25' stop-color='%2330E0C0'/%3E%3Cstop offset='45%25' stop-color='%233DB8E8'/%3E%3Cstop offset='60%25' stop-color='%233898E8'/%3E%3Cstop offset='75%25' stop-color='%235B78E8'/%3E%3Cstop offset='90%25' stop-color='%238B6BD8'/%3E%3Cstop offset='100%25' stop-color='%23B088D8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M56 10 L26 52 L44 52 L38 90 L74 44 L54 44 Z' fill='url(%23a)'/%3E%3Cpath d='M56 10 L26 52 L44 52' fill='rgba(255,255,255,.2)'/%3E%3C/svg%3E");
    background-size: 62%;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}
.ets-ws-page .form-logo .link-to-home::after {
    content: 'NXY';
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #2ec4b6, #007AFF, #7ff5cd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   GLASS CARD — Unified for login, register, auth
   ============================================================ */
.ets-ws-page .login-form-info,
.ets-ws-page .register-form-info,
.ets-ws-page .auth_page_content,
.ets-ws-page .reset-password-info {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(40px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(1.1);
    border: 0.5px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 24px !important;
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 12px 48px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    padding: 0 !important;
    margin: 0 auto;
    max-width: 520px;
    overflow: hidden;
    animation: glassCardIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

@keyframes glassCardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* auth.tpl specific — the panel wrapper */
.ets-ws-page .auth-page .ets_ws_register_page .panel {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(40px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(1.1);
    border: 0.5px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 24px !important;
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 12px 48px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    padding: 0 !important;
    max-width: 560px;
    margin: 0 auto;
    overflow: hidden;
    animation: glassCardIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.ets-ws-page .auth-page .ets_ws_register_page {
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================
   FORM HEADER & TITLES
   ============================================================ */
.ets-ws-page .form-header {
    padding: 28px 32px 0;
    border-bottom: none !important;
    background: none !important;
}
.ets-ws-page .form-title {
    padding: 8px 32px 0 !important;
    text-align: center;
}
.ets-ws-page .login-form-title {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: -0.5px;
    margin: 0;
    text-transform: none !important;
}
/* Subtitle under title */
.ets-ws-page .form-title + p,
.ets-ws-page .register-form-info > .item-step-registration:not(form):not(.box-registration) {
    text-align: center;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 14px;
    padding: 4px 32px 0;
    margin: 0;
}
.ets-ws-page .register-form-info > p.item-step-registration {
    text-align: center;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 14px;
    padding: 4px 32px 16px;
    margin: 0;
}
.ets-ws-page .register-form-info > p.item-step-registration a {
    color: #007AFF !important;
    text-decoration: none;
    font-weight: 600;
}
.ets-ws-page .register-form-info > p.item-step-registration a:hover {
    text-decoration: underline;
}

/* Auth page subtitle */
.ets-ws-page .auth_page_content .form-title + .alert,
.ets-ws-page .form-registration .alert-info {
    background: rgba(0, 122, 255, 0.1) !important;
    border: 1px solid rgba(0, 122, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 12px;
    margin: 12px 24px;
    font-size: 13px;
}

/* ============================================================
   FORM BODY — Labels & Inputs
   ============================================================ */
.ets-ws-page .login-form,
.ets-ws-page .register-form-info form,
.ets-ws-page .auth_page_content form,
.ets-ws-page .form-registration form {
    padding: 20px 32px 8px !important;
}

/* Labels */
.ets-ws-page .form-group label.form-control-label,
.ets-ws-page .form-group > label:first-child {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em;
}
.ets-ws-page .form-group label.required::after {
    content: ' *';
    color: #ff6b8a;
}

/* Inputs, textareas, selects */
.ets-ws-page input.form-control,
.ets-ws-page textarea.form-control,
.ets-ws-page select,
.ets-ws-page .form-group select {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 14px !important;
    color: #fff !important;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    width: 100%;
    outline: none;
}
.ets-ws-page input.form-control::placeholder,
.ets-ws-page textarea.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}
.ets-ws-page input.form-control:focus,
.ets-ws-page textarea.form-control:focus,
.ets-ws-page select:focus {
    border-color: rgba(0, 122, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15) !important;
}

/* Textarea specific */
.ets-ws-page textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Select dropdown styling */
.ets-ws-page select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 40px !important;
    cursor: pointer;
}
.ets-ws-page select option {
    background: #1a1d26;
    color: #fff;
}

/* Disabled/readonly inputs */
.ets-ws-page input[readonly],
.ets-ws-page input[disabled] {
    opacity: 0.5 !important;
    cursor: not-allowed;
}

/* Field descriptions */
.ets-ws-page .desc,
.ets-ws-page .form-control-comment {
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 12px !important;
    margin-top: 6px;
    line-height: 1.4;
}




/* ============================================================
   CHECKBOXES — Custom SVG checkmark
   ============================================================ */
.ets-ws-page .custom-checkbox {
    position: relative;
}
.ets-ws-page .custom-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px !important;
    line-height: 1.5;
    cursor: pointer;
}
.ets-ws-page .custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.ets-ws-page .custom-checkbox input[type="checkbox"] + span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.2s;
    margin-top: 1px;
}
.ets-ws-page .custom-checkbox input[type="checkbox"] + span .material-icons,
.ets-ws-page .custom-checkbox input[type="checkbox"] + span i {
    display: none !important;
}
.ets-ws-page .custom-checkbox input[type="checkbox"]:checked + span {
    background: #007AFF;
    border-color: #007AFF;
}
.ets-ws-page .custom-checkbox input[type="checkbox"]:checked + span::after {
    content: '';
    display: block;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}
.ets-ws-page .custom-checkbox em {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 12px !important;
    display: block;
    margin-top: 4px;
}

/* ============================================================
   RADIO BUTTONS
   ============================================================ */
.ets-ws-page .custom-radio {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.ets-ws-page .custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
}
.ets-ws-page .custom-radio input[type="radio"] + span {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-right: 6px;
    background: rgba(255, 255, 255, 0.05);
}
.ets-ws-page .custom-radio input[type="radio"]:checked + span {
    border-color: #007AFF;
}
.ets-ws-page .custom-radio input[type="radio"]:checked + span::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #007AFF;
    border-radius: 50%;
}
.ets-ws-page .radio-inline {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px;
    margin-right: 16px;
}

/* ============================================================
   FILE INPUT
   ============================================================ */
.ets-ws-page .custom-file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ets-ws-page .custom-file-input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}
.ets-ws-page .custom-file-label {
    flex: 1;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1.5px dashed rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px !important;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.ets-ws-page .custom-file-label::after {
    content: none !important;
}
.ets-ws-page .custom-file:hover .custom-file-label {
    border-color: rgba(0, 122, 255, 0.4) !important;
    background: rgba(0, 122, 255, 0.05) !important;
}
.ets-ws-page .custom-file-label[data-browser] {
    display: block;
}

/* ============================================================
   GROUP TITLES — Section headers in registration fields
   ============================================================ */
.ets-ws-page .html_box.group_title {
    padding: 0 0 4px;
    margin: 16px 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ets-ws-page .html_box.group_title:first-child {
    margin-top: 0;
}
.ets-ws-page .html_box.group_title h1 {
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide duplicate group titles — only show when group changes */
/* We use CSS adjacent sibling: if a group_title follows a form-group, show it */
/* If a group_title follows another group_title (shouldn't happen), hide second */

/* ============================================================
   BUTTONS
   ============================================================ */
.ets-ws-page .btn-primary,
.ets-ws-page button[type="submit"].btn-primary,
.ets-ws-page .form-footer .btn-primary,
.ets-ws-page .form-control-submit {
    background: linear-gradient(135deg, #007AFF, #0063d1) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 14px 36px !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 18px rgba(0, 122, 255, 0.3);
    width: 100%;
    display: block;
    text-align: center;
    letter-spacing: -0.01em;
}
.ets-ws-page .btn-primary:hover,
.ets-ws-page button[type="submit"].btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #2b8aff, #007AFF) !important;
}
.ets-ws-page .btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Secondary button (Back) */
.ets-ws-page .btn-secondary,
.ets-ws-page .btn-default {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 14px !important;
    padding: 14px 36px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}
.ets-ws-page .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

/* Footer buttons container */
.ets-ws-page .form-footer {
    padding: 12px 32px 28px !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ets-ws-page .form-footer .pull-left {
    float: none !important;
}

/* ============================================================
   LINKS
   ============================================================ */
/* Logout link */
.ets-ws-page .btn-link-logout {
    color: #ff6b8a !important;
    text-decoration: none;
    font-size: 13px;
    display: block;
    text-align: center;
    padding: 12px;
}

/* ============================================================
   ALERTS
   ============================================================ */
.ets-ws-page .alert-danger {
    background: rgba(255, 69, 58, 0.12) !important;
    border: 1px solid rgba(255, 69, 58, 0.25) !important;
    color: #ff8a8a !important;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    margin: 0 32px 12px;
}
.ets-ws-page .alert-danger ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ets-ws-page .alert-success {
    background: rgba(52, 199, 89, 0.12) !important;
    border: 1px solid rgba(52, 199, 89, 0.25) !important;
    color: #7dda94 !important;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    margin: 0 32px 12px;
    text-align: center;
}

/* ============================================================
   FORM ROW LAYOUT — Clean stacking
   ============================================================ */
.ets-ws-page .form-group.row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    padding: 0;
}
.ets-ws-page .form-group.row .col-md-3,
.ets-ws-page .form-group.row .col-md-6,
.ets-ws-page .form-group.row .col-md-9 {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}
/* Hide empty comment columns */
.ets-ws-page .form-group.row .col-md-3.form-control-comment:empty {
    display: none;
}
.ets-ws-page .form-group.row .col-md-3.form-control-comment {
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 12px;
}

/* ============================================================
   STEP TRANSITIONS (create_account: step 1 → step 2)
   ============================================================ */
.ets-ws-page .box-wholesale-field {
    padding: 0 32px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    
/* WebGL Aurora Canvas */
#nxy-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

main.ets-ws-page { padding: 12px; }
    main.ets-ws-page::before { width: 350px; height: 350px; }
    main.ets-ws-page::after { width: 300px; height: 300px; }
    .ets-ws-page > .clearfix:first-of-type { width: 250px; height: 250px; }
    .ets-ws-page > .clearfix:last-of-type { width: 200px; height: 200px; }

    .ets-ws-page .login-form-info,
    .ets-ws-page .register-form-info,
    .ets-ws-page .auth_page_content,
    .ets-ws-page .auth-page .panel {
        border-radius: 20px !important;
        max-width: 100%;
    }
    .ets-ws-page .form-header { padding: 24px 20px 0; }
    .ets-ws-page .form-title { padding: 8px 20px 0 !important; }
    .ets-ws-page .login-form,
    .ets-ws-page .register-form-info form,
    .ets-ws-page .auth_page_content form { padding: 16px 20px 8px !important; }
    .ets-ws-page .form-footer { padding: 12px 20px 24px !important; }
    .ets-ws-page .login-form-info > .footer { padding: 12px 20px 20px; }
    .ets-ws-page .alert-danger,
    .ets-ws-page .alert-success { margin: 0 20px 12px; }
    .ets-ws-page .box-wholesale-field { padding: 0 20px; }

    .ets-ws-page .login-form-title { font-size: 20px !important; }
}

@media (max-width: 480px) {
    
/* WebGL Aurora Canvas */
#nxy-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

main.ets-ws-page { padding: 8px; }
    .ets-ws-page .login-form-info,
    .ets-ws-page .register-form-info,
    .ets-ws-page .auth_page_content,
    .ets-ws-page .auth-page .panel {
        border-radius: 16px !important;
    }
}

/* ============================================================
   MISC OVERRIDES & CLEANUP
   ============================================================ */
.ets-ws-page .panel { border: none !important; box-shadow: none; margin: 0; }
.ets-ws-page .has_alert_page .alert { margin: 16px 32px; }
.ets-ws-page .row { margin: 0; }
.ets-ws-page section { width: 100%; }
.ets-ws-page .clearfix::after { content: ''; display: table; clear: both; }

/* Hide "Only letters and dot" comment under name fields */
.ets-ws-page .box-registration .form-group .col-md-6 > .form-control-comment {
    display: none;
}

/* Form container within auth page */
.ets-ws-page .form-registration {
    padding: 0 24px 24px;
}
.ets-ws-page .form-registration form {
    padding: 0 !important;
}
.ets-ws-page .form-registration .form-group {
    padding: 0 8px;
}

/* "Accédez à votre espace B2B" subtitle */
.ets-ws-page .auth_page_content .form-title + .form-errors + form,
.ets-ws-page .login-form-info .form-title + .login-form {
    margin-top: 0;
}

.ets-ws-page .forgot-password {
    text-align: center;
    margin-top: 12px;
}
.ets-ws-page .forgot-password a {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.ets-ws-page .forgot-password a:hover {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
}

.ets-ws-page .no-account {
    text-align: center;
    padding-top: 24px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}
.ets-ws-page .no-account a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 13px 36px;
    background: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.75) !important;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(.2,.9,.3,1);
    cursor: pointer;
}
.ets-ws-page .no-account a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* PASSWORD — Force Montrer button inside input */
.ets-ws-page .js-parent-focus.input-group,
.ets-ws-page div.input-group {
    display: block !important;
    position: relative !important;
}
.ets-ws-page .js-parent-focus.input-group > .form-control,
.ets-ws-page div.input-group > input.form-control {
    display: block !important;
    width: 100% !important;
    border-radius: 12px !important;
    padding-right: 90px !important;
}
.ets-ws-page .js-parent-focus.input-group > .input-group-btn,
.ets-ws-page .js-parent-focus.input-group > span.input-group-btn {
    position: absolute !important;
    right: 8px !important;
    top: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    z-index: 10 !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ets-ws-page .js-parent-focus.input-group > .input-group-btn > .btn,
.ets-ws-page .js-parent-focus.input-group > span.input-group-btn > button.btn {
    background: rgba(255, 255, 255, 0.1) !important;
    min-height: unset !important;
    border: none !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: 5px 12px !important;
    cursor: pointer;
    transition: all 0.2s;
    height: auto !important;
    line-height: 1.2 !important;
    display: inline-block !important;
    white-space: nowrap;
}
.ets-ws-page .js-parent-focus.input-group > .input-group-btn > .btn:hover,
.ets-ws-page .js-parent-focus.input-group > span.input-group-btn > button.btn:hover {
    background: rgba(0, 122, 255, 0.2) !important;
    color: #409CFF !important;
}

/* ============================================================
   LANGUAGE FOOTER
   ============================================================ */
.nxy-lang-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 8px 0;
}
.nxy-lang-footer a {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}
.nxy-lang-footer a:hover,
.nxy-lang-footer a.active {
    color: rgba(255, 255, 255, 0.9);
}
.nxy-lang-footer .lang-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 300;
}

/* ============================================================
   RECAPTCHA v3 BADGE — Hidden per Google ToS (with attribution)
   ============================================================ */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* ============================================================
   PASSWORD PAGES — Subtitle, Back link & email display
   ============================================================ */
.ets-ws-page .nxy-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.5) !important;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    padding: 4px 32px 12px;
    margin: 0;
}

.ets-ws-page .nxy-back-link {
    text-align: center;
    padding: 20px 32px 24px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}
.ets-ws-page .nxy-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}
.ets-ws-page .nxy-back-link a:hover {
    color: rgba(255, 255, 255, 0.8);
}
.ets-ws-page .nxy-back-link a svg {
    opacity: 0.6;
    transition: opacity 0.2s;
}
.ets-ws-page .nxy-back-link a:hover svg {
    opacity: 1;
}

.ets-ws-page .nxy-email-display {
    text-align: center;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 16px;
}

/* Reset password form — fields section spacing */
.ets-ws-page .reset-password-info .form-fields,
.ets-ws-page .pw_new_content .form-fields {
    padding: 0 32px;
}

@media (max-width: 768px) {
    .ets-ws-page .nxy-subtitle { padding: 4px 20px 12px; }
    .ets-ws-page .nxy-back-link { padding: 16px 20px 20px; }
    .ets-ws-page .reset-password-info .form-fields,
    .ets-ws-page .pw_new_content .form-fields { padding: 0 20px; }
}
