/* ============================================================
   auth-modern.css — Authentication Pages Design System
   Prefix: auth_ / specific_auth_
   Palette aligned with Inscription module (insc_ design)
   ============================================================ */

/* ---- CSS VARIABLES ---- */
:root {
    --auth-primary:       #2563eb;
    --auth-primary-dk:    #1d4ed8;
    --auth-primary-lt:    #eff6ff;
    --auth-primary-br:    #bfdbfe;
    --auth-gradient:      linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    --auth-gradient-btn:  linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --auth-accent:        linear-gradient(90deg, #2563eb, #3b82f6, #7c3aed);
    --auth-bg:            #f1f5f9;
    --auth-white:         #ffffff;
    --auth-border:        #e2e8f0;
    --auth-text:          #0f172a;
    --auth-text2:         #475569;
    --auth-muted:         #94a3b8;
    --auth-success:       #059669;
    --auth-success-lt:    #f0fdf4;
    --auth-success-br:    #a7f3d0;
    --auth-danger:        #dc2626;
    --auth-danger-lt:     #fef2f2;
    --auth-danger-br:     #fca5a5;
    --auth-warning:       #d97706;
    --auth-radius:        16px;
    --auth-radius-sm:     10px;
    --auth-radius-xs:     6px;
    --auth-shadow:        0 24px 64px rgba(37, 99, 235, .14), 0 4px 20px rgba(0, 0, 0, .09);
    --auth-shadow-sm:     0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05);
    --auth-transition:    all 0.22s cubic-bezier(.4, 0, .2, 1);
    --auth-font:          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---- HTML / BODY RESET ---- */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #1e3a5f; /* fallback colour while fixed bg paints */
}

/* ---- BOOTSTRAP CONFLICT GUARDS ---- */
/* Prevent Bootstrap's .btn from overriding auth_btn */
.auth_card_body .auth_btn,
.auth_card_body .auth_btn:focus,
.auth_card_body .auth_btn:active {
    box-shadow: none;
    outline: none;
}
/* Prevent Bootstrap input border override */
.auth_card_body .auth_input:focus {
    border-color: var(--auth-primary) !important;
    box-shadow: 0 0 0 3px var(--auth-primary-lt) !important;
}
/* Prevent Bootstrap from collapsing fixed background */
.auth_bg_wrap {
    transform: none !important;
}

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

/* ---- PAGE WRAPPER ---- */
.auth_page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--auth-font);
    color: var(--auth-text);
    position: relative;
}

/* ============================================================
   ANIMATED BACKGROUND
   ============================================================ */
.auth_bg_wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--auth-gradient);
    overflow: hidden;
}

.auth_bg_wrap::before {
    content: '';
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    top: -220px;
    right: -220px;
    animation: auth_float_a 18s ease-in-out infinite alternate;
}

.auth_bg_wrap::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    bottom: -120px;
    left: -120px;
    animation: auth_float_b 22s ease-in-out infinite alternate;
}

.auth_bg_dot {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(124, 58, 237, .1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: auth_float_a 14s ease-in-out infinite alternate-reverse;
}

@keyframes auth_float_a {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.05); }
}

@keyframes auth_float_b {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-20px, 30px) scale(1.08); }
}

/* ============================================================
   OUTER CENTERING + CARD
   ============================================================ */
.auth_outer {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 8px;
}

/* ---- CARD ---- */
.auth_card {
    background: var(--auth-white);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    width: 100%;
    max-width: 488px;
    overflow: hidden;
    animation: auth_card_in .35s cubic-bezier(.4, 0, .2, 1);
}

@keyframes auth_card_in {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)  scale(1); }
}

/* ---- ACCENT BAR (top gradient stripe) ---- */
.auth_card_accent {
    height: 4px;
    background: var(--auth-accent);
}

/* ---- CARD BODY ---- */
.auth_card_body {
    padding: 36px 44px 32px;
}

@media (max-width: 520px) {
    .auth_card_body { padding: 28px 24px 24px; }
}

/* ============================================================
   LOGO
   ============================================================ */
.auth_logo_wrap {
    text-align: center;
    margin-bottom: 28px;
}

.auth_logo_wrap a {
    display: inline-block;
}

.auth_logo_wrap img {
    max-height: 72px;
    max-width: 200px;
    object-fit: contain;
    transition: var(--auth-transition);
}

.auth_logo_wrap img:hover {
    opacity: .85;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.auth_title {
    font-size: 23px;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0 0 6px;
    text-align: center;
    line-height: 1.3;
}

.auth_subtitle {
    font-size: 14px;
    color: var(--auth-text2);
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.55;
}

/* ============================================================
   TABS (Student / Teacher)
   ============================================================ */
.auth_tabs {
    display: flex;
    background: var(--auth-bg);
    border-radius: var(--auth-radius-sm);
    padding: 4px;
    margin-bottom: 20px;
    gap: 3px;
}

.auth_tab_btn {
    flex: 1;
    padding: 9px 10px;
    border: none;
    background: transparent;
    border-radius: calc(var(--auth-radius-sm) - 3px);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--auth-text2);
    cursor: pointer;
    transition: var(--auth-transition);
    text-decoration: none !important;
    display: block;
    text-align: center;
    font-family: var(--auth-font);
}

.auth_tab_btn.active,
.auth_tab_btn:focus {
    background: var(--auth-white);
    color: var(--auth-primary);
    box-shadow: var(--auth-shadow-sm);
    font-weight: 600;
    outline: none;
}

.auth_tab_btn:hover:not(.active) {
    color: var(--auth-text);
    background: rgba(255, 255, 255, .6);
}

/* ============================================================
   FORM
   ============================================================ */
.auth_form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth_form_group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.auth_label {
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-text2);
    letter-spacing: .01em;
    margin-bottom: 2px;
}

/* ---- INPUT WRAPPER (icon prefix + optional eye btn) ---- */
.auth_input_wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* ---- PREFIX ICON ---- */
.auth_input_icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-muted);
    font-size: 19px;
    pointer-events: none;
    z-index: 2;
    transition: color .2s;
    display: flex;
    align-items: center;
    line-height: 1;
}

.auth_input_wrap:focus-within .auth_input_icon {
    color: var(--auth-primary);
}

/* ---- INPUT ---- */
.auth_input {
    width: 100% !important;
    height: 48px !important;
    padding: 0 44px !important;
    border: 1.5px solid var(--auth-border) !important;
    border-radius: var(--auth-radius-sm) !important;
    font-size: 14.5px;
    color: var(--auth-text);
    background: var(--auth-white) !important;
    transition: var(--auth-transition);
    outline: none;
    font-family: var(--auth-font);
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
    display: block;
}

.auth_input::placeholder {
    color: var(--auth-muted);
    font-size: 14px;
}

.auth_input:focus {
    border-color: var(--auth-primary) !important;
    box-shadow: 0 0 0 3px var(--auth-primary-lt) !important;
    outline: none !important;
}

.auth_input.is-invalid {
    border-color: var(--auth-danger) !important;
    background: var(--auth-danger-lt) !important;
}

.auth_input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important;
}

/* No prefix icon variant */
.auth_input_no_icon {
    padding-left: 14px;
}

/* ---- PASSWORD TOGGLE BUTTON ---- */
.auth_pw_toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--auth-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: var(--auth-radius-xs);
    transition: var(--auth-transition);
    z-index: 3;
    flex-shrink: 0;
}

.auth_pw_toggle:hover {
    color: var(--auth-primary);
    background: var(--auth-primary-lt);
}

.auth_pw_toggle:focus {
    outline: 2px solid var(--auth-primary-br);
    outline-offset: 1px;
}

.auth_pw_toggle svg {
    width: 17px;
    height: 17px;
    display: block;
    pointer-events: none;
}

/* Shift input right when toggle exists so text doesn't overlap */
.auth_input_wrap .auth_pw_toggle ~ .auth_input,
.auth_input_wrap:has(.auth_pw_toggle) .auth_input {
    padding-right: 46px;
}

/* ---- VALIDATION MESSAGE ---- */
.auth_error {
    font-size: 12px;
    color: var(--auth-danger);
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-top: 2px;
    line-height: 1.4;
}

/* ============================================================
   CAPTCHA
   ============================================================ */
.auth_captcha_label {
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-text2);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.auth_captcha_eq {
    font-size: 15px;
    font-weight: 700;
    color: var(--auth-primary);
    background: var(--auth-primary-lt);
    border: 1.5px solid var(--auth-primary-br);
    border-radius: var(--auth-radius-xs);
    padding: 2px 12px;
    letter-spacing: .06em;
    font-family: "Courier New", monospace;
}

/* ============================================================
   REMEMBER ME + FORGOT PASSWORD ROW
   ============================================================ */
.auth_checkbox_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.auth_check_label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    color: var(--auth-text2);
    cursor: pointer;
    user-select: none;
}

.auth_check_label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--auth-primary);
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 3px;
}

.auth_forgot_link {
    font-size: 13px;
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--auth-transition);
    white-space: nowrap;
}

.auth_forgot_link:hover {
    color: var(--auth-primary-dk);
    text-decoration: underline;
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */
.auth_btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: var(--auth-radius-sm);
    background: var(--auth-gradient-btn);
    color: var(--auth-white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--auth-transition);
    letter-spacing: .02em;
    position: relative;
    overflow: hidden;
    font-family: var(--auth-font);
    margin-top: 4px;
}

.auth_btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background .2s;
}

.auth_btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, .38);
}

.auth_btn:hover::after {
    background: rgba(255, 255, 255, .06);
}

.auth_btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.auth_btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* Secondary (outline) variant */
.auth_btn_secondary {
    background: transparent;
    border: 1.5px solid var(--auth-primary);
    color: var(--auth-primary);
    font-size: 14px;
    height: 44px;
}

.auth_btn_secondary:hover {
    background: var(--auth-primary-lt);
    box-shadow: none;
    transform: none;
}

/* ============================================================
   ALERTS
   ============================================================ */
.auth_alert {
    border-radius: var(--auth-radius-xs);
    padding: 12px 16px;
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 16px;
    border-width: 1px;
    border-style: solid;
}

.auth_alert_danger {
    background: var(--auth-danger-lt);
    border-color: var(--auth-danger-br);
    color: var(--auth-danger);
}

.auth_alert_success {
    background: var(--auth-success-lt);
    border-color: var(--auth-success-br);
    color: var(--auth-success);
}

/* ============================================================
   FOOTER LINKS (below form)
   ============================================================ */
.auth_footer_links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.auth_footer_link {
    font-size: 13.5px;
    color: var(--auth-text2);
    margin: 0;
}

.auth_footer_link a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--auth-transition);
}

.auth_footer_link a:hover {
    color: var(--auth-primary-dk);
    text-decoration: underline;
}

.auth_back_link {
    color: var(--auth-text2);
}

.auth_back_link a {
    color: var(--auth-text2) !important;
    font-weight: 500 !important;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: var(--auth-transition);
}

.auth_back_link a:hover {
    color: var(--auth-primary) !important;
    text-decoration: none !important;
}

/* ============================================================
   SECTION DIVIDER / HEADING (company register)
   ============================================================ */
.auth_section_heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--auth-text2);
    border-bottom: 1px solid var(--auth-border);
    padding-bottom: 8px;
    margin: 8px 0 14px;
}

/* ============================================================
   2FA — CODE INPUT
   ============================================================ */
.auth_code_input_wrap {
    display: flex;
    justify-content: center;
}

.auth_code_input {
    width: 100%;
    height: 58px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .35em;
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    outline: none;
    transition: var(--auth-transition);
    color: var(--auth-text);
    background: var(--auth-white);
    font-family: "Courier New", monospace;
    -webkit-appearance: none;
    appearance: none;
}

.auth_code_input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-primary-lt);
}

/* ---- QR CODE WRAPPER ---- */
.auth_qr_wrap {
    display: flex;
    justify-content: center;
    margin: 12px 0 16px;
    padding: 16px;
    background: var(--auth-bg);
    border-radius: var(--auth-radius-sm);
    border: 1px solid var(--auth-border);
}

/* ---- REMEMBER CHECKBOX ---- */
.auth_remember_wrap {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 14px;
    background: var(--auth-bg);
    border-radius: var(--auth-radius-sm);
    cursor: pointer;
}

.auth_remember_wrap input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--auth-primary);
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.auth_remember_text {
    font-size: 13px;
    color: var(--auth-text2);
    line-height: 1.5;
    cursor: pointer;
}

/* ============================================================
   2FA — RADIO METHOD CARDS
   ============================================================ */
.auth_radio_options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
}

.auth_radio_card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    cursor: pointer;
    transition: var(--auth-transition);
    background: var(--auth-white);
    position: relative;
    user-select: none;
}

.auth_radio_card:hover {
    border-color: var(--auth-primary-br);
    background: var(--auth-primary-lt);
}

.auth_radio_card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.auth_radio_card_icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--auth-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: var(--auth-text2);
    flex-shrink: 0;
    transition: var(--auth-transition);
}

.auth_radio_card:has(input:checked) {
    border-color: var(--auth-primary);
    background: var(--auth-primary-lt);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.auth_radio_card:has(input:checked) .auth_radio_card_icon {
    background: var(--auth-primary);
    color: var(--auth-white);
}

.auth_radio_card_text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 1px;
}

.auth_radio_card_text span {
    font-size: 12px;
    color: var(--auth-text2);
}

.auth_radio_dot {
    margin-left: auto;
    width: 20px;
    height: 20px;
    border: 2px solid var(--auth-border);
    border-radius: 50%;
    transition: var(--auth-transition);
    flex-shrink: 0;
    position: relative;
}

.auth_radio_card:has(input:checked) .auth_radio_dot {
    border-color: var(--auth-primary);
    background: var(--auth-primary);
}

.auth_radio_card:has(input:checked) .auth_radio_dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    background: var(--auth-white);
    border-radius: 50%;
}

/* ============================================================
   VERIFY EMAIL PAGE
   ============================================================ */
.auth_verify_icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--auth-primary-lt);
    border: 2px solid var(--auth-primary-br);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--auth-primary);
    margin: 0 auto 20px;
}

/* ============================================================
   PAGE FOOTER
   ============================================================ */
.auth_page_footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 14px 16px 18px;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

.auth_page_footer strong {
    color: rgba(255, 255, 255, .8);
}

.auth_page_footer a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: color .2s;
}

.auth_page_footer a:hover {
    color: rgba(255, 255, 255, 1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 520px) {
    .auth_title  { font-size: 20px; }
    .auth_card   { border-radius: 12px; }
    .auth_btn    { height: 46px; font-size: 14px; }
    .auth_input  { height: 44px; font-size: 14px; }
    .auth_checkbox_wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
    .auth_radio_card_icon { width: 36px; height: 36px; font-size: 18px; }
}

@media (max-width: 360px) {
    .auth_card_body { padding: 24px 18px 20px; }
}

/* ============================================================
   REGISTER — SLIDING PILL SEGMENTED CONTROL  (areg_ prefix)
   Pure CSS + vanilla JS, no Bootstrap/jQuery dependency
   ============================================================ */

/* Track (gray pill) */
.areg_switcher {
    position: relative;
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
    gap: 0;
}

/* Sliding white pill */
.areg_pill {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #ffffff;
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(0,0,0,.09), 0 1px 3px rgba(0,0,0,.06);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
    z-index: 0;
}

.areg_pill_right {
    transform: translateX(100%);
}

/* Tab buttons */
.areg_tab_btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 10px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-text2);
    cursor: pointer;
    transition: color .2s;
    position: relative;
    z-index: 1;
    font-family: var(--auth-font);
    white-space: nowrap;
    user-select: none;
}

.areg_tab_btn i {
    font-size: 18px;
    line-height: 1;
}

.areg_tab_btn.areg_active {
    color: var(--auth-primary);
    font-weight: 600;
}

/* Panels */
.areg_panel {
    animation: areg_fadein .26s cubic-bezier(.4,0,.2,1) both;
}

.areg_panel_hidden {
    display: none !important;
}

@keyframes areg_fadein {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   WIDER CARD VARIANT  (register page)
   ============================================================ */
.auth_card_wide {
    max-width: 540px !important;
}

/* ============================================================
   SPLIT LAYOUT  (login page)
   ============================================================ */
.auth_split_page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
}

/* ---- Left branding panel ---- */
.auth_split_left {
    width: 42%;
    min-height: 100vh;
    background: linear-gradient(160deg, #1a3356 0%, #1d4ed8 65%, #2563eb 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 44px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Decorative circles */
.auth_split_left::before {
    content: '';
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.07);
    top: -170px; right: -170px;
    pointer-events: none;
}
.auth_split_left::after {
    content: '';
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.06);
    bottom: -130px; left: -110px;
    pointer-events: none;
}

/* Extra decorative ring */
.specific_auth_ring {
    position: absolute;
    width: 240px; height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.05);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.specific_auth_left_inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 340px;
}

/* Logo in left panel */
.specific_auth_panel_logo {
    margin-bottom: 40px;
    text-align: center;
}
.specific_auth_panel_logo img {
    max-height: 68px;
    max-width: 180px;
    filter: brightness(0) invert(1);
    opacity: .95;
}

/* Heading */
.specific_auth_panel_title {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin: 0 0 14px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.specific_auth_panel_subtitle {
    font-size: 14.5px;
    color: rgba(255,255,255,.72);
    text-align: center;
    margin: 0 0 36px;
    line-height: 1.65;
}

/* Feature list */
.specific_auth_features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    width: 100%;
}
.specific_auth_feature {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.88);
    font-size: 14px;
}
.specific_auth_feature:last-child { border-bottom: none; }
.specific_auth_feature_icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: rgba(255,255,255,.85);
    flex-shrink: 0;
}

/* Decorative dots row */
.specific_auth_dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
.specific_auth_dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    transition: all .25s;
}
.specific_auth_dot.auth_dot_active {
    width: 20px;
    border-radius: 4px;
    background: rgba(255,255,255,.8);
}

/* ---- Right form panel ---- */
.auth_split_right {
    flex: 1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    min-height: 100vh;
    overflow-y: auto;
}

.auth_split_right_inner {
    width: 100%;
    max-width: 400px;
}

/* Login title style (right panel — no card) */
.specific_auth_login_title {
    font-size: 28px;
    font-weight: 800;
    color: var(--auth-text);
    margin: 0 0 6px;
    letter-spacing: -.025em;
}

.specific_auth_login_sub {
    font-size: 14px;
    color: var(--auth-text2);
    margin: 0 0 28px;
    line-height: 1.55;
}

/* Divider inside split form */
.specific_auth_split_divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--auth-muted);
    font-size: 12px;
    margin: 6px 0;
}
.specific_auth_split_divider::before,
.specific_auth_split_divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

/* Footer below form on right side */
.specific_auth_split_footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}
.specific_auth_split_footer p {
    font-size: 13.5px;
    color: var(--auth-text2);
    margin: 0;
}
.specific_auth_split_footer a {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--auth-transition);
}
.specific_auth_split_footer a:hover {
    color: var(--auth-primary-dk);
    text-decoration: underline;
}
.specific_auth_back_link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--auth-text2) !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    transition: color .2s;
}
.specific_auth_back_link:hover {
    color: var(--auth-primary) !important;
    text-decoration: none !important;
}

/* Split page copyright bar */
.specific_auth_split_copy {
    position: fixed;
    bottom: 12px;
    right: 20px;
    font-size: 11px;
    color: var(--auth-muted);
    z-index: 10;
}
.specific_auth_split_copy a {
    color: var(--auth-text2);
    text-decoration: none;
}
.specific_auth_split_copy a:hover { text-decoration: underline; }

/* ---- Split layout responsive ---- */
@media (max-width: 900px) {
    .auth_split_page { flex-direction: column; }

    .auth_split_left {
        width: 100%;
        min-height: auto;
        padding: 32px 24px;
        flex-direction: row;
        gap: 18px;
        justify-content: flex-start;
        align-items: center;
    }
    .specific_auth_left_inner { max-width: none; flex-direction: row; gap: 16px; align-items: center; }
    .specific_auth_panel_logo { margin-bottom: 0; }
    .specific_auth_panel_logo img { max-height: 44px; }
    .specific_auth_panel_title { font-size: 18px; margin: 0; text-align: left; }
    .specific_auth_panel_subtitle,
    .specific_auth_features,
    .specific_auth_dots { display: none; }

    .auth_split_right {
        min-height: auto;
        padding: 36px 24px 52px;
        align-items: flex-start;
        background: #fff;
    }
    .specific_auth_split_copy { display: none; }
}

@media (max-width: 480px) {
    .auth_split_right { padding: 28px 20px 48px; }
    .specific_auth_login_title { font-size: 23px; }
}

/* ============================================================
   REGISTER — ROLE SELECTOR CARDS
   ============================================================ */
.specific_auth_role_wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.specific_auth_role_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px 16px;
    border: 2px solid var(--auth-border);
    border-radius: 14px;
    background: var(--auth-white);
    cursor: pointer;
    transition: var(--auth-transition);
    text-align: center;
    font-family: var(--auth-font);
    position: relative;
    overflow: hidden;
    user-select: none;
}

.specific_auth_role_card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--auth-primary-lt);
    opacity: 0;
    transition: opacity .2s;
}

.specific_auth_role_card:hover { border-color: var(--auth-primary-br); }
.specific_auth_role_card:hover::after { opacity: .55; }

.specific_auth_role_card.active {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.specific_auth_role_card.active::after { opacity: 1; }

.specific_auth_role_icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--auth-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--auth-muted);
    transition: var(--auth-transition);
    position: relative;
    z-index: 1;
}
.specific_auth_role_card.active .specific_auth_role_icon {
    background: var(--auth-primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(37,99,235,.35);
}

.specific_auth_role_name {
    font-size: 14px;
    font-weight: 700;
    color: var(--auth-text);
    position: relative;
    z-index: 1;
}
.specific_auth_role_desc {
    font-size: 11.5px;
    color: var(--auth-text2);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Check badge (top-right corner) */
.specific_auth_role_badge {
    position: absolute;
    top: 9px; right: 9px;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid var(--auth-border);
    background: var(--auth-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--auth-transition);
    z-index: 2;
}
.specific_auth_role_card.active .specific_auth_role_badge {
    background: var(--auth-primary);
    border-color: var(--auth-primary);
}
.specific_auth_role_badge svg {
    width: 10px; height: 10px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity .15s;
}
.specific_auth_role_card.active .specific_auth_role_badge svg { opacity: 1; }

/* Tab panel fade-in */
.specific_auth_panel {
    animation: specific_panel_fadein .28s cubic-bezier(.4,0,.2,1) both;
}
@keyframes specific_panel_fadein {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: translateY(0); }
}
