/* =========================================================
   BABILCO — REGISTER PAGE
   Standalone stylesheet for register.php
========================================================= */

:root{
    --bg:        #040a15;
    --bg-2:      #081220;

    --card:      #0d1a2d;

    --line:      rgba(255,255,255,.08);
    --line-2:    rgba(255,255,255,.14);

    --gold:      #f5b942;
    --gold-2:    #ffd97a;
    --gold-deep: #e09a1f;

    --green:     #34d399;
    --red:       #f87171;

    --text:      #eaf0fb;
    --text-2:    rgba(234,240,251,.68);
    --text-3:    rgba(234,240,251,.45);

    --fs-2xs:    11px;
    --fs-xs:     12px;
    --fs-sm:     13px;
    --fs-md:     14px;
    --fs-lg:     16px;
    --fs-xl:     19px;
    --fs-2xl:    24px;
    --fs-3xl:    30px;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html{
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.sw-register-page{

    min-height: 100vh;

    background:
        radial-gradient(circle at 12% 8%, rgba(245,185,66,.06), transparent 32%),
        radial-gradient(circle at 88% 92%, rgba(30,99,255,.07), transparent 34%),
        var(--bg);

    color: var(--text);

    font-family: var(--font-body);

    font-size: var(--fs-md);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   SHELL
========================================================= */

.sw-register-shell{

    display: grid;

    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);

    min-height: 100vh;

    max-width: 1440px;

    margin: 0 auto;

    padding: 24px;

    gap: 24px;

    align-items: stretch;
}


/* =========================================================
   LEFT — BRAND PANEL
========================================================= */

.sw-register-brand{

    position: relative;

    overflow: hidden;

    border-radius: 26px;

    padding: 56px 52px;

    background:
        linear-gradient(
            145deg,
            #0c1a2e 0%,
            #0a2640 45%,
            #062018 100%
        );

    border: 1px solid var(--line);

    display: flex;

    align-items: center;

    min-height: 640px;
}

.sw-brand-glow{

    position: absolute;

    width: 520px;
    height: 520px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(245,185,66,.28),
            transparent 65%
        );

    top: -160px;
    right: -160px;

    filter: blur(60px);

    pointer-events: none;
}

.sw-brand-grid{

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);

    background-size: 48px 48px;

    mask-image: radial-gradient(
        ellipse at 30% 40%,
        #000 20%,
        transparent 75%
    );

    -webkit-mask-image: radial-gradient(
        ellipse at 30% 40%,
        #000 20%,
        transparent 75%
    );

    pointer-events: none;
}

.sw-brand-inner{
    position: relative;
    z-index: 2;
    width: 100%;
}

.sw-brand-logo{

    display: inline-flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;

    color: var(--text);

    margin-bottom: 48px;
}

.sw-brand-logo-mark{

    width: 48px;
    height: 48px;

    border-radius: 14px;

    background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));

    display: grid;
    place-items: center;

    box-shadow: 0 10px 28px rgba(245,185,66,.32);

    flex-shrink: 0;
}

.sw-brand-logo-mark svg{
    width: 26px;
    height: 26px;
}

.sw-brand-logo-text{
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.sw-brand-logo-text b{
    font-size: var(--fs-xl);
    font-weight: 800;
}

.sw-brand-logo-text small{
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2.6px;
    text-transform: uppercase;
}

.sw-brand-title{

    font-size: clamp(28px, 3.4vw, 40px);

    font-weight: 700;

    line-height: 1.15;

    letter-spacing: -.8px;

    margin-bottom: 18px;
}

.sw-brand-title span{
    color: var(--gold);
}

.sw-brand-lead{

    color: var(--text-2);

    font-size: var(--fs-md);

    line-height: 1.75;

    max-width: 460px;

    margin-bottom: 36px;
}

.sw-brand-points{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.sw-brand-points li{
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sw-point-icon{

    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    border-radius: 12px;

    display: grid;
    place-items: center;

    background: rgba(245,185,66,.12);

    border: 1px solid rgba(245,185,66,.24);

    color: var(--gold);

    font-size: 17px;

    font-weight: 700;
}

.sw-brand-points strong{
    display: block;
    font-size: var(--fs-md);
    color: var(--text);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2px;
}

.sw-brand-points small{
    display: block;
    font-size: var(--fs-xs);
    color: var(--text-3);
    line-height: 1.5;
}

.sw-brand-stats{

    display: flex;

    align-items: center;

    gap: 20px;

    padding-top: 26px;

    border-top: 1px solid rgba(255,255,255,.08);
}

.sw-stat{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sw-stat-value{

    font-size: var(--fs-2xl);

    font-weight: 800;

    color: var(--gold-2);

    letter-spacing: -.5px;

    line-height: 1.1;
}

.sw-stat-label{

    font-size: var(--fs-2xs);

    color: var(--text-3);

    font-weight: 600;

    letter-spacing: .3px;

    text-transform: uppercase;
}

.sw-stat-divider{

    width: 1px;
    height: 32px;

    background: linear-gradient(
        to bottom,
        transparent,
        var(--line-2),
        transparent
    );
}


/* =========================================================
   RIGHT — FORM PANEL
========================================================= */

.sw-register-form-wrap{
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.sw-register-topbar{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 42px;
    gap: 12px;
}

.sw-register-form-card{

    flex: 1;

    display: flex;

    flex-direction: column;

    justify-content: center;

    background:
        linear-gradient(160deg, rgba(15,27,51,.85), rgba(8,18,32,.65));

    border: 1px solid var(--line);

    border-radius: 26px;

    padding: 44px 40px;

    box-shadow:
        0 30px 70px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.04);
}

.sw-form-header{
    margin-bottom: 28px;
}

.sw-form-eyebrow{
    display: inline-block;
    color: var(--gold);
    font-size: var(--fs-2xs);
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.sw-form-header h2{
    font-size: var(--fs-3xl);
    font-weight: 700;
    letter-spacing: -.8px;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 8px;
}

.sw-form-header p{
    color: var(--text-2);
    font-size: var(--fs-sm);
    line-height: 1.6;
}


/* =========================================================
   FIELDS
========================================================= */

.sw-field{
    margin-bottom: 18px;
}

.sw-field-label{

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    font-size: var(--fs-sm);

    font-weight: 600;

    color: var(--text);

    margin-bottom: 8px;
}

.sw-required{

    font-size: var(--fs-2xs);

    color: var(--gold);

    font-weight: 700;

    letter-spacing: .8px;

    text-transform: uppercase;
}

.sw-optional{

    font-size: var(--fs-2xs);

    color: var(--text-3);

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: .8px;
}

.sw-field-input-wrap{
    position: relative;
}

.sw-field-input{

    width: 100%;

    min-height: 50px;

    padding: 0 16px;

    border: 1px solid var(--line-2);

    border-radius: var(--radius-sm);

    background: rgba(255,255,255,.03);

    color: var(--text);

    font-family: inherit;

    font-size: var(--fs-sm);

    transition: border-color .2s ease,
                background .2s ease,
                box-shadow .2s ease;
}

.sw-field-input::placeholder{
    color: rgba(234,240,251,.32);
}

.sw-field-input:focus{

    outline: none;

    border-color: rgba(245,185,66,.55);

    background: rgba(245,185,66,.03);

    box-shadow: 0 0 0 3px rgba(245,185,66,.08);
}

.sw-field-input:disabled{
    opacity: .5;
    cursor: not-allowed;
}

.sw-field-hint{
    display: block;
    margin-top: 6px;
    font-size: var(--fs-2xs);
    color: var(--text-3);
    line-height: 1.5;
}

.sw-field-hint b{
    color: var(--text-2);
    font-weight: 700;
}

.sw-field-input-wrap .sw-field-input{
    padding-right: 46px;
}

.sw-toggle-pass{

    position: absolute;

    right: 6px;

    top: 50%;

    transform: translateY(-50%);

    width: 36px;
    height: 36px;

    border: none;

    border-radius: 8px;

    background: rgba(255,255,255,.04);

    color: var(--text-2);

    cursor: pointer;

    font-size: 15px;

    transition: background .2s ease, color .2s ease;
}

.sw-toggle-pass:hover{
    background: rgba(245,185,66,.10);
    color: var(--gold);
}


/* =========================================================
   PASSWORD STRENGTH
========================================================= */

.sw-password-strength{
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sw-password-strength > span{
    display: block;
    flex: 1;
    height: 5px;
    border-radius: 100px;
    background: rgba(255,255,255,.08);
    position: relative;
    overflow: hidden;
}

.sw-password-strength > span::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.sw-password-strength[data-level="1"]{ color: #f87171; }
.sw-password-strength[data-level="1"] > span::after{ transform: scaleX(.33); }

.sw-password-strength[data-level="2"]{ color: #fbbf24; }
.sw-password-strength[data-level="2"] > span::after{ transform: scaleX(.66); }

.sw-password-strength[data-level="3"]{ color: #34d399; }
.sw-password-strength[data-level="3"] > span::after{ transform: scaleX(1); }

.sw-pw-label{
    font-size: var(--fs-2xs);
    font-weight: 600;
    color: var(--text-3);
    white-space: nowrap;
}


/* =========================================================
   SUBMIT
========================================================= */

.sw-submit-btn{

    width: 100%;

    min-height: 54px;

    margin-top: 8px;

    padding: 0 20px;

    border: none;

    border-radius: var(--radius-sm);

    background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));

    color: #1a1205;

    font-family: inherit;

    font-size: var(--fs-md);

    font-weight: 800;

    letter-spacing: .2px;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    transition: transform .2s ease, box-shadow .2s ease;
}

.sw-submit-btn:hover:not(:disabled){
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(245,185,66,.32);
}

.sw-submit-btn:disabled{
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.sw-submit-arrow{
    font-size: 17px;
    font-weight: 800;
}


/* =========================================================
   MESSAGES
========================================================= */

.sw-auth-error,
.sw-auth-success{
    display: none;
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    line-height: 1.55;
}

.sw-auth-error{
    color: var(--red);
    background: rgba(248,113,113,.08);
    border: 1px solid rgba(248,113,113,.22);
}

.sw-auth-success{
    color: var(--green);
    background: rgba(52,211,153,.08);
    border: 1px solid rgba(52,211,153,.22);
}

.sw-auth-error.show,
.sw-auth-success.show{
    display: block;
}


/* =========================================================
   TERMS NOTE
========================================================= */

.sw-terms-note{
    margin-top: 18px;
    font-size: var(--fs-2xs);
    color: var(--text-3);
    line-height: 1.6;
    text-align: center;
}

.sw-terms-note a{
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(245,185,66,.4);
    transition: border-color .2s ease;
}

.sw-terms-note a:hover{
    border-bottom-color: var(--gold);
    border-bottom-style: solid;
}


/* =========================================================
   LOGIN META
========================================================= */

.sw-auth-meta{

    margin-top: 22px;

    padding-top: 22px;

    border-top: 1px solid var(--line);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    font-size: var(--fs-sm);

    color: var(--text-2);
}

.sw-auth-link{

    color: var(--gold);

    text-decoration: none;

    font-weight: 700;

    transition: color .2s ease;
}

.sw-auth-link:hover{
    color: var(--gold-2);
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1024px){

    .sw-register-shell{
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 18px;
    }

    .sw-register-brand{
        padding: 40px 36px;
        min-height: 0;
    }

    .sw-brand-title{ font-size: 32px; }
    .sw-brand-lead{ margin-bottom: 28px; }
    .sw-brand-points{ margin-bottom: 30px; }

    .sw-register-form-card{ padding: 36px 32px; }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 720px){

    .sw-register-shell{ padding: 12px; gap: 12px; }

    .sw-register-brand{ padding: 30px 24px; border-radius: 20px; }

    .sw-brand-logo{ margin-bottom: 26px; }

    .sw-brand-title{ font-size: 26px; margin-bottom: 14px; }

    .sw-brand-lead{ font-size: var(--fs-sm); margin-bottom: 24px; }

    .sw-brand-points{ gap: 12px; margin-bottom: 24px; }

    .sw-point-icon{
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .sw-brand-stats{ gap: 14px; padding-top: 20px; }
    .sw-stat-value{ font-size: var(--fs-xl); }
    .sw-stat-label{ font-size: 10px; }

    .sw-register-form-card{ padding: 28px 22px; border-radius: 20px; }

    .sw-form-header{ margin-bottom: 22px; }
    .sw-form-header h2{ font-size: var(--fs-2xl); }

    .sw-field{ margin-bottom: 14px; }
    .sw-field-input{ min-height: 46px; font-size: var(--fs-md); }
    .sw-submit-btn{ min-height: 50px; }

    .sw-register-topbar{ justify-content: flex-start; }
}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
========================================================= */

@media (max-width: 400px){

    .sw-register-shell{ padding: 8px; }
    .sw-register-brand{ padding: 24px 18px; }
    .sw-brand-title{ font-size: 22px; }
    .sw-register-form-card{ padding: 22px 16px; }
    .sw-form-header h2{ font-size: var(--fs-xl); }
    .sw-brand-stats{ flex-wrap: wrap; gap: 12px; }
    .sw-stat-divider{ display: none; }
}


/* =========================================================
   LANGUAGE SWITCHER
   ---------------------------------------------------------
   Integrates the global language-switcher.js into the
   register page header slot (#langSwitcherSlot).

   The switcher markup is generated at runtime by
   language-switcher.js — we only need to style it here.
========================================================= */

#langSwitcherSlot{
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sw-sidebar-lang{
    position: relative;
}

/* ---------------------------------------------------------
   Toggle button
--------------------------------------------------------- */

.sw-sidebar-lang-toggle{

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 10px 14px;

    border-radius: 12px;

    background: rgba(255,255,255,.04);

    border: 1px solid var(--line-2);

    color: var(--text);

    font-family: inherit;

    font-size: var(--fs-sm);

    font-weight: 500;

    cursor: pointer;

    transition: background .25s ease,
                border-color .25s ease,
                color .25s ease;

    white-space: nowrap;
}

.sw-sidebar-lang-toggle:hover{

    background: rgba(245,185,66,.09);

    border-color: var(--gold);

    color: var(--gold);
}

.sw-sidebar-lang-icon{

    font-size: 15px;

    line-height: 1;
}

.sw-sidebar-lang-current{

    font-weight: 600;
}

.sw-sidebar-lang-caret{

    font-size: 10px;

    opacity: .7;

    transition: transform .25s ease;
}

.sw-sidebar-lang-toggle[aria-expanded="true"] .sw-sidebar-lang-caret{

    transform: rotate(180deg);
}

/* ---------------------------------------------------------
   Dropdown list
--------------------------------------------------------- */

.sw-sidebar-lang-list{

    position: absolute;

    top: calc(100% + 8px);

    right: 0;

    min-width: 240px;

    max-height: 340px;

    overflow-y: auto;

    background: rgba(9,17,34,.98);

    border: 1px solid var(--line);

    border-radius: 16px;

    padding: 8px;

    backdrop-filter: blur(24px);

    -webkit-backdrop-filter: blur(24px);

    box-shadow:
        0 24px 60px rgba(0,0,0,.55);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-8px);

    transition:
        opacity .22s ease,
        visibility .22s ease,
        transform .22s ease;

    z-index: 500;

    scrollbar-width: thin;

    scrollbar-color: rgba(245,185,66,.3) transparent;
}

.sw-sidebar-lang-list.open{

    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

.sw-sidebar-lang-list::-webkit-scrollbar{
    width: 6px;
}

.sw-sidebar-lang-list::-webkit-scrollbar-thumb{
    background: rgba(245,185,66,.3);
    border-radius: 6px;
}

/* ---------------------------------------------------------
   Dropdown items
--------------------------------------------------------- */

.sw-sidebar-lang-item{

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    width: 100%;

    padding: 10px 14px;

    border-radius: 10px;

    background: none;

    border: none;

    color: var(--text);

    font-family: inherit;

    font-size: var(--fs-sm);

    text-align: left;

    cursor: pointer;

    transition: background .2s ease, color .2s ease;
}

.sw-sidebar-lang-item:hover{

    background: rgba(245,185,66,.10);

    color: var(--gold);
}

.sw-sidebar-lang-item.active{

    background: rgba(245,185,66,.15);

    color: var(--gold);
}

.sw-sidebar-lang-native{

    font-weight: 600;

    line-height: 1.3;
}

.sw-sidebar-lang-label{

    font-size: var(--fs-2xs);

    color: var(--text-3);

    margin-top: 2px;

    font-weight: 400;
}

.sw-sidebar-lang-item.active .sw-sidebar-lang-label,
.sw-sidebar-lang-item:hover .sw-sidebar-lang-label{

    color: rgba(245,185,66,.75);
}

.sw-sidebar-lang-reset{

    border-bottom: 1px solid rgba(255,255,255,.06);

    margin-bottom: 6px;

    padding-bottom: 12px;
}

/* ---------------------------------------------------------
   Hide default Google Translate bar
--------------------------------------------------------- */

body{
    top: 0 !important;
}

.skiptranslate,
#goog-gt-tt,
.goog-te-banner-frame,
.goog-te-balloon-frame{

    display: none !important;
}

#google_translate_element{

    position: absolute !important;

    width: 1px;
    height: 1px;

    overflow: hidden;

    opacity: 0;

    pointer-events: none;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 720px){

    .sw-sidebar-lang-toggle{
        padding: 9px 12px;
        font-size: var(--fs-xs);
    }

    .sw-sidebar-lang-list{
        right: auto;
        left: 0;
        min-width: 220px;
        max-height: 280px;
    }
}

@media (max-width: 400px){

    .sw-sidebar-lang-current{
        display: none;
    }

    .sw-sidebar-lang-toggle{
        padding: 9px 10px;
    }
}
