:root {
    --ap-red: #ef2323;
    --ap-red-dark: #b50909;
    --ap-red-soft: rgba(239, 35, 35, 0.16);
    --ap-orange: #ff6a1a;
    --ap-bg: #050708;
    --ap-panel: rgba(14, 17, 20, 0.94);
    --ap-panel-soft: rgba(23, 27, 31, 0.82);
    --ap-border: rgba(255, 255, 255, 0.11);
    --ap-border-strong: rgba(239, 35, 35, 0.38);
    --ap-text: #f7f7f8;
    --ap-muted: #9ba3ad;
    --ap-input: rgba(255, 255, 255, 0.045);
    --ap-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

html {
    min-height: 100%;
    background: var(--ap-bg);
}

body.ap-auth-body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ap-text);
    background:
        radial-gradient(circle at 12% 30%, rgba(151, 9, 9, 0.2), transparent 30%),
        radial-gradient(circle at 88% 25%, rgba(239, 35, 35, 0.12), transparent 25%),
        linear-gradient(135deg, #040506 0%, #090b0d 46%, #030405 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ap-auth-body *,
.ap-auth-body *::before,
.ap-auth-body *::after {
    box-sizing: border-box;
}

.ap-auth-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ap-auth-background::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.ap-orb {
    position: absolute;
    display: block;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.16;
    animation: apFloatOrb 12s ease-in-out infinite alternate;
}

.ap-orb-one {
    top: -140px;
    right: -100px;
    background: var(--ap-red);
}

.ap-orb-two {
    bottom: -180px;
    left: -100px;
    background: #710000;
    animation-delay: -5s;
}

.ap-light-line {
    position: absolute;
    display: block;
    width: 60vw;
    height: 2px;
    opacity: 0.35;
    background: linear-gradient(90deg, transparent, var(--ap-red), var(--ap-orange), transparent);
    box-shadow: 0 0 18px rgba(239, 35, 35, 0.75);
    transform: rotate(-13deg);
    animation: apLineSweep 9s linear infinite;
}

.ap-light-line-one { top: 46%; left: -18%; }
.ap-light-line-two { top: 69%; right: -26%; animation-delay: -4s; }

.ap-auth-topbar,
.ap-auth-main,
.ap-auth-footer {
    position: relative;
    z-index: 2;
}

.ap-auth-topbar {
    width: min(1480px, calc(100% - 48px));
    min-height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.ap-auth-brand-area,
.ap-auth-brand,
.ap-auth-actions,
.ap-auth-quick-links {
    display: flex;
    align-items: center;
}

.ap-auth-brand-area { gap: 34px; }
.ap-auth-brand { gap: 13px; text-decoration: none !important; }

.ap-auth-logo-wrap {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.025));
    box-shadow: 0 12px 34px rgba(0,0,0,.35), inset 0 0 20px rgba(239,35,35,.06);
}

.ap-auth-logo-wrap img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.ap-auth-wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.ap-auth-wordmark strong { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.ap-auth-wordmark small { margin-top: 6px; color: var(--ap-muted); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.ap-auth-quick-links,
.ap-auth-actions { gap: 18px; }

.ap-auth-quick-links a,
.ap-auth-text-link {
    color: #cbd0d6 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: color .2s ease;
}

.ap-auth-quick-links a:hover,
.ap-auth-text-link:hover { color: #fff !important; }

.ap-auth-outline-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid rgba(239,35,35,.65);
    border-radius: 999px;
    color: #fff !important;
    background: rgba(239,35,35,.08);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: inset 0 0 20px rgba(239,35,35,.04);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.ap-auth-outline-button:hover {
    transform: translateY(-2px);
    background: rgba(239,35,35,.18);
    box-shadow: 0 10px 26px rgba(239,35,35,.18);
}

.ap-auth-language .btn,
.ap-auth-language button,
.ap-auth-language .dropdown-toggle {
    min-height: 40px !important;
    border: 1px solid var(--ap-border) !important;
    border-radius: 12px !important;
    color: #fff !important;
    background: rgba(255,255,255,.045) !important;
    box-shadow: none !important;
}

.ap-auth-language .dropdown-menu {
    border: 1px solid var(--ap-border);
    border-radius: 12px;
    background: #121518;
    box-shadow: var(--ap-shadow);
}

.ap-auth-language .dropdown-menu a { color: #e7e9ec !important; }
.ap-auth-language .dropdown-menu a:hover { background: var(--ap-red-soft) !important; }

.ap-auth-main {
    width: 100%;
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    padding: 12px 24px 28px;
}

.ap-auth-container {
    width: min(1420px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(410px, .75fr);
    overflow: hidden;
    border: 1px solid var(--ap-border);
    border-radius: 26px;
    background: rgba(7, 9, 11, .74);
    box-shadow: var(--ap-shadow), 0 0 0 1px rgba(239,35,35,.04) inset;
    backdrop-filter: blur(20px);
}

.ap-auth-visual {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    isolation: isolate;
    background-color: #080a0c;
    background-image: url('../img/auth/autoparts-auth-hero.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
}

.ap-auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(4,5,6,.18), rgba(4,5,6,.08) 58%, rgba(4,5,6,.76)),
        linear-gradient(180deg, rgba(4,5,6,.96) 0%, rgba(4,5,6,.35) 38%, rgba(4,5,6,.1) 65%, rgba(4,5,6,.65) 100%);
}

.ap-auth-visual::after {
    content: "";
    position: absolute;
    left: -12%;
    right: -12%;
    bottom: 17%;
    height: 2px;
    z-index: 1;
    background: linear-gradient(90deg, transparent, var(--ap-red), #ff6f22, transparent);
    box-shadow: 0 0 24px rgba(239,35,35,.8);
    transform: rotate(-4deg);
    animation: apPulseLine 3.2s ease-in-out infinite;
}

.ap-visual-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 78% 56%, rgba(239,35,35,.18), transparent 28%);
}

.ap-visual-content {
    position: relative;
    z-index: 3;
    width: min(680px, 86%);
    padding: 74px 64px 48px;
}

.ap-eyebrow,
.ap-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ff4747;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ap-eyebrow i {
    width: 30px;
    height: 2px;
    display: block;
    background: var(--ap-red);
    box-shadow: 0 0 12px rgba(239,35,35,.75);
}

.ap-visual-content h1 {
    max-width: 620px;
    margin: 20px 0 18px;
    color: #fff;
    font-size: clamp(40px, 4.2vw, 68px);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -.045em;
    text-shadow: 0 12px 40px rgba(0,0,0,.45);
}

.ap-visual-content h1 strong {
    color: var(--ap-red);
    font-weight: inherit;
}

.ap-visual-content > p {
    max-width: 520px;
    margin: 0;
    color: #c2c7cd;
    font-size: 17px;
    line-height: 1.65;
}

.ap-benefit-row {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ap-benefit-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(8,10,12,.56);
    backdrop-filter: blur(10px);
}

.ap-benefit-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(239,35,35,.46);
    border-radius: 10px;
    color: #ff3e3e;
    background: rgba(239,35,35,.1);
}

.ap-benefit-item span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ap-benefit-item strong { color: #fff; font-size: 12px; }
.ap-benefit-item small { margin-top: 3px; color: var(--ap-muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ap-floating-part {
    position: absolute;
    z-index: 4;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(239,35,35,.55);
    border-radius: 16px;
    color: #ff4d4d;
    background: rgba(10,12,14,.65);
    box-shadow: 0 0 26px rgba(239,35,35,.12);
    backdrop-filter: blur(12px);
    animation: apFloatPart 4s ease-in-out infinite;
}

.ap-floating-part-one { right: 10%; top: 38%; }
.ap-floating-part-two { left: 8%; bottom: 17%; animation-delay: -2s; }

.ap-auth-card {
    position: relative;
    min-width: 0;
    padding: 64px 56px;
    border-left: 1px solid var(--ap-border);
    background:
        radial-gradient(circle at 100% 0%, rgba(239,35,35,.11), transparent 26%),
        linear-gradient(160deg, rgba(19,22,25,.98), rgba(9,11,13,.98));
}

.ap-auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 9%;
    right: 9%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(239,35,35,.62), transparent);
}

.ap-card-heading { margin-bottom: 34px; }
.ap-card-heading h2 {
    margin: 10px 0 8px;
    color: #fff;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.03em;
}
.ap-card-heading p { margin: 0; color: var(--ap-muted); font-size: 14px; line-height: 1.55; }

.ap-login-form { display: flex; flex-direction: column; gap: 20px; }
.ap-field { margin: 0 !important; }
.ap-field > label,
.ap-label-row label {
    display: block;
    margin: 0 0 9px;
    color: #e9ebed;
    font-size: 13px;
    font-weight: 700;
}

.ap-label-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ap-label-row a { color: #ff4545 !important; font-size: 12px; font-weight: 700; text-decoration: none !important; }
.ap-label-row a:hover { color: #ff7777 !important; }

.ap-input-wrap { position: relative; }
.ap-input-wrap input {
    width: 100%;
    height: 54px;
    padding: 0 48px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 13px;
    outline: none;
    color: #fff;
    background: var(--ap-input);
    font-size: 14px;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.ap-input-wrap input::placeholder { color: #68717b; }
.ap-input-wrap input:focus {
    border-color: rgba(239,35,35,.8);
    background: rgba(255,255,255,.065);
    box-shadow: 0 0 0 4px rgba(239,35,35,.09), 0 10px 25px rgba(0,0,0,.2);
}

.ap-input-icon,
.ap-password-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #8b949e;
}
.ap-input-icon { left: 17px; pointer-events: none; }
.ap-password-toggle {
    right: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    outline: 0;
    background: transparent;
}
.ap-password-toggle:hover { color: #fff; }

.ap-remember-row {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: -2px 0 0;
    color: #bdc3c9;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.ap-remember-row input { position: absolute; opacity: 0; pointer-events: none; }
.ap-custom-checkbox {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 5px;
    color: transparent;
    background: rgba(255,255,255,.03);
    transition: all .2s ease;
}
.ap-custom-checkbox i { font-size: 9px; }
.ap-remember-row input:checked + .ap-custom-checkbox {
    border-color: var(--ap-red);
    color: #fff;
    background: var(--ap-red);
    box-shadow: 0 0 15px rgba(239,35,35,.25);
}

.ap-recaptcha-wrap { overflow-x: auto; padding: 2px 0; }

.ap-primary-button {
    position: relative;
    width: 100%;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    overflow: hidden;
    border: 1px solid #fa3d3d;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(100deg, #b20b0b 0%, #ef2323 55%, #d51010 100%);
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(190,9,9,.27), inset 0 1px 0 rgba(255,255,255,.2);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.ap-primary-button::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -55%;
    width: 35%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    animation: apButtonShine 4s ease-in-out infinite;
}
.ap-primary-button:hover,
.ap-primary-button:focus {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 18px 38px rgba(190,9,9,.38), 0 0 0 4px rgba(239,35,35,.08);
}
.ap-primary-button i { transition: transform .2s ease; }
.ap-primary-button:hover i { transform: translateX(4px); }

.ap-register-link {
    margin: 25px 0 0;
    text-align: center;
    color: var(--ap-muted);
    font-size: 13px;
}
.ap-register-link a { color: #ff4545 !important; font-weight: 800; text-decoration: none !important; }
.ap-register-link a:hover { color: #ff7777 !important; text-decoration: underline !important; }

.ap-auth-body .help-block,
.ap-auth-body label.error,
.ap-auth-body .text-danger { color: #ff6666 !important; font-size: 12px; }
.ap-auth-body .has-error input { border-color: #f05252 !important; }

.ap-demo-section { width: min(1420px, calc(100% - 48px)); margin: 24px auto; color: #222; }
.ap-demo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ap-demo-grid .btn-app { margin: 0; }

/* Registration */
.ap-register-container { grid-template-columns: minmax(360px, .72fr) minmax(620px, 1.28fr); align-items: stretch; }
.ap-register-visual { min-height: 820px; background-position: 42% bottom; }
.ap-register-visual .ap-visual-content { padding-right: 38px; }
.ap-register-visual .ap-visual-content h1 { font-size: clamp(38px, 3.7vw, 59px); }

.ap-register-benefits {
    margin-top: 34px;
    display: grid;
    gap: 11px;
}
.ap-register-benefits > div {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(380px, 100%);
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(8,10,12,.58);
    backdrop-filter: blur(12px);
}
.ap-register-benefits i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 10px;
    color: #ff4242;
    background: rgba(239,35,35,.11);
}
.ap-register-benefits span { display: flex; flex-direction: column; }
.ap-register-benefits strong { color: #fff; font-size: 13px; }
.ap-register-benefits small { margin-top: 3px; color: var(--ap-muted); font-size: 11px; }

.ap-register-card { padding: 46px 48px 42px; }
.ap-register-heading { margin-bottom: 20px; }
.ap-register-heading h2 { font-size: 30px; }
.ap-register-form { display: none; }

.ap-register-card .wizard {
    width: 100%;
    overflow: visible;
}

.ap-register-card .wizard > .steps {
    margin: 0 0 20px;
}

.ap-register-card .wizard > .steps ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
}

.ap-register-card .wizard > .steps li {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
}

.ap-register-card .wizard > .steps a,
.ap-register-card .wizard > .steps a:hover,
.ap-register-card .wizard > .steps a:active {
    min-height: 54px;
    display: flex !important;
    align-items: center;
    gap: 9px;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 12px !important;
    color: #8f98a2 !important;
    background: rgba(255,255,255,.035) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
}

.ap-register-card .wizard > .steps .number {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    color: #c9ced3;
    background: rgba(255,255,255,.07);
}

.ap-register-card .wizard > .steps .current a,
.ap-register-card .wizard > .steps .done a {
    border-color: rgba(239,35,35,.45) !important;
    color: #fff !important;
    background: rgba(239,35,35,.11) !important;
}
.ap-register-card .wizard > .steps .current .number,
.ap-register-card .wizard > .steps .done .number {
    color: #fff;
    background: var(--ap-red);
    box-shadow: 0 0 16px rgba(239,35,35,.24);
}

.ap-register-card .wizard > .content {
    min-height: 660px;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.085);
    border-radius: 18px;
    color: #fff;
    background: rgba(255,255,255,.025) !important;
}

.ap-register-card .wizard > .content > .body {
    width: 100%;
    height: 100%;
    padding: 25px 22px 18px;
}

.ap-register-card fieldset { border: 0; margin: 0; padding: 0; }
.ap-register-card legend {
    width: 100%;
    margin: 0 0 18px;
    padding: 0 0 13px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: #fff !important;
    font-size: 16px;
    font-weight: 800;
}

.ap-register-card .form-group { margin-bottom: 17px; }
.ap-register-card .form-group > label,
.ap-register-card .form-group label:not(.error) {
    margin-bottom: 7px;
    color: #cfd4d9;
    font-size: 12px;
    font-weight: 700;
}

.ap-register-card .input-group { width: 100%; }
.ap-register-card .input-group-addon {
    width: 44px;
    border: 1px solid rgba(255,255,255,.12);
    border-right: 0;
    border-radius: 11px 0 0 11px;
    color: #ff4a4a;
    background: rgba(239,35,35,.07);
}

.ap-register-card .form-control,
.ap-register-card input[type="text"],
.ap-register-card input[type="email"],
.ap-register-card input[type="password"],
.ap-register-card input[type="number"],
.ap-register-card select {
    height: 46px;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 11px;
    outline: none;
    color: #f4f5f6 !important;
    background: rgba(255,255,255,.045) !important;
    box-shadow: none !important;
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.ap-register-card .input-group .form-control { border-radius: 0 11px 11px 0; }
.ap-register-card .form-control::placeholder { color: #68717b; }
.ap-register-card .form-control:focus {
    border-color: rgba(239,35,35,.75) !important;
    background: rgba(255,255,255,.065) !important;
    box-shadow: 0 0 0 3px rgba(239,35,35,.08) !important;
}

.ap-register-card input[type="file"] {
    width: 100%;
    min-height: 46px;
    padding: 9px 12px;
    border: 1px dashed rgba(255,255,255,.19);
    border-radius: 11px;
    color: #b9c0c7;
    background: rgba(255,255,255,.035);
}

.ap-register-card .select2-container { width: 100% !important; }
.ap-register-card .select2-container--default .select2-selection--single {
    height: 46px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 0 11px 11px 0 !important;
    background: rgba(255,255,255,.045) !important;
}
.ap-register-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    height: 46px;
    line-height: 46px;
    color: #f4f5f6 !important;
}
.ap-register-card .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }

.select2-dropdown {
    border: 1px solid rgba(255,255,255,.12) !important;
    color: #e9ecef;
    background: #15191d !important;
}
.select2-results__option[aria-selected=true] { background: #242a30 !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--ap-red) !important; }

.ap-register-card .wizard > .actions {
    margin-top: 18px;
}
.ap-register-card .wizard > .actions ul {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.ap-register-card .wizard > .actions li { margin: 0; }
.ap-register-card .wizard > .actions a,
.ap-register-card .wizard > .actions a:hover,
.ap-register-card .wizard > .actions a:active {
    min-width: 112px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 20px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 11px;
    color: #fff !important;
    background: rgba(255,255,255,.06);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}
.ap-register-card .wizard > .actions li:not(.disabled):last-child a,
.ap-register-card .wizard > .actions a.tw-dw-btn-primary {
    border-color: #f13b3b !important;
    background: linear-gradient(100deg, #b20b0b, #ef2323) !important;
    box-shadow: 0 10px 24px rgba(190,9,9,.22);
}
.ap-register-card .wizard > .actions .disabled a { opacity: .38; cursor: not-allowed; }

.ap-register-card .terms_condition { color: #ff4c4c !important; }
.ap-register-card .input-check-box { accent-color: var(--ap-red); }

.ap-auth-footer {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 20px 18px;
    color: #6f7881;
    font-size: 11px;
}
.ap-footer-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ap-red); }

@keyframes apFloatOrb {
    to { transform: translate3d(40px, 50px, 0) scale(1.15); }
}
@keyframes apLineSweep {
    0% { transform: translateX(-14%) rotate(-13deg); opacity: .05; }
    50% { opacity: .38; }
    100% { transform: translateX(40%) rotate(-13deg); opacity: .05; }
}
@keyframes apPulseLine {
    0%, 100% { opacity: .35; transform: rotate(-4deg) scaleX(.9); }
    50% { opacity: .85; transform: rotate(-4deg) scaleX(1.05); }
}
@keyframes apFloatPart {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-12px) rotate(3deg); }
}
@keyframes apButtonShine {
    0%, 55% { left: -55%; }
    75%, 100% { left: 125%; }
}

@media (max-width: 1120px) {
    .ap-auth-container { grid-template-columns: minmax(0, 1fr) minmax(390px, .88fr); }
    .ap-visual-content { padding-left: 42px; padding-right: 38px; }
    .ap-auth-card { padding-left: 38px; padding-right: 38px; }
    .ap-register-container { grid-template-columns: 380px minmax(0, 1fr); }
    .ap-register-card { padding: 38px 30px; }
    .ap-register-card .wizard > .content { min-height: 700px; }
}

@media (max-width: 900px) {
    .ap-auth-topbar { width: calc(100% - 32px); min-height: 78px; }
    .ap-auth-wordmark small,
    .ap-auth-quick-links { display: none; }
    .ap-auth-main { padding: 8px 16px 24px; }
    .ap-auth-container,
    .ap-register-container { grid-template-columns: 1fr; width: min(700px, 100%); }
    .ap-auth-visual { min-height: 400px; }
    .ap-auth-visual::before { background: linear-gradient(180deg, rgba(4,5,6,.94), rgba(4,5,6,.22) 60%, rgba(4,5,6,.55)); }
    .ap-visual-content { width: 100%; padding: 48px 40px 36px; }
    .ap-visual-content h1 { font-size: 44px; }
    .ap-auth-card { border-left: 0; border-top: 1px solid var(--ap-border); }
    .ap-register-visual { min-height: 430px; }
    .ap-register-card .wizard > .content { min-height: 720px; }
}

@media (max-width: 640px) {
    .ap-auth-topbar { align-items: flex-start; padding-top: 12px; }
    .ap-auth-logo-wrap { width: 48px; height: 48px; border-radius: 13px; }
    .ap-auth-logo-wrap img { width: 36px; height: 36px; }
    .ap-auth-wordmark strong { font-size: 15px; }
    .ap-auth-actions { gap: 8px; }
    .ap-auth-outline-button { min-height: 38px; padding: 0 13px; font-size: 11px; }
    .ap-auth-text-link { display: none; }
    .ap-auth-language .btn,
    .ap-auth-language button,
    .ap-auth-language .dropdown-toggle { min-height: 38px !important; padding-left: 10px !important; padding-right: 10px !important; font-size: 11px !important; }
    .ap-auth-main { align-items: flex-start; padding: 4px 10px 18px; }
    .ap-auth-container { border-radius: 19px; }
    .ap-auth-visual { min-height: 355px; background-position: 45% bottom; }
    .ap-visual-content { padding: 38px 25px 28px; }
    .ap-eyebrow { font-size: 9px; }
    .ap-visual-content h1 { margin-top: 14px; font-size: 34px; }
    .ap-visual-content > p { font-size: 14px; }
    .ap-benefit-row { grid-template-columns: 1fr; gap: 7px; margin-top: 23px; }
    .ap-benefit-item { padding: 9px 11px; }
    .ap-benefit-item:nth-child(3) { display: none; }
    .ap-floating-part { display: none; }
    .ap-auth-card { padding: 34px 23px; }
    .ap-card-heading h2 { font-size: 28px; }
    .ap-register-card { padding: 28px 14px 24px; }
    .ap-register-visual { min-height: 390px; }
    .ap-register-benefits { margin-top: 22px; }
    .ap-register-benefits > div { padding: 10px 12px; }
    .ap-register-card .wizard > .steps ul { gap: 5px; }
    .ap-register-card .wizard > .steps a,
    .ap-register-card .wizard > .steps a:hover,
    .ap-register-card .wizard > .steps a:active {
        min-height: 46px;
        justify-content: center;
        padding: 8px 5px !important;
        font-size: 0 !important;
    }
    .ap-register-card .wizard > .steps .number { margin: 0; font-size: 11px; }
    .ap-register-card .wizard > .content { min-height: 1130px; border-radius: 14px; }
    .ap-register-card .wizard > .content > .body { padding: 20px 10px 14px; }
    .ap-register-card .col-md-4,
    .ap-register-card .col-md-6,
    .ap-register-card .col-sm-6,
    .ap-register-card .col-md-12 { padding-left: 6px; padding-right: 6px; }
    .ap-register-card .wizard > .actions ul { justify-content: space-between; }
    .ap-register-card .wizard > .actions a,
    .ap-register-card .wizard > .actions a:hover,
    .ap-register-card .wizard > .actions a:active { min-width: 96px; padding: 0 14px; }
    .ap-auth-footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ap-auth-body *,
    .ap-auth-body *::before,
    .ap-auth-body *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

[dir="rtl"] .ap-auth-card { border-left: 0; border-right: 1px solid var(--ap-border); }
[dir="rtl"] .ap-input-icon { left: auto; right: 17px; }
[dir="rtl"] .ap-password-toggle { right: auto; left: 10px; }
[dir="rtl"] .ap-input-wrap input { padding-left: 48px; padding-right: 48px; }
[dir="rtl"] .ap-register-card .input-group-addon { border-right: 1px solid rgba(255,255,255,.12); border-left: 0; border-radius: 0 11px 11px 0; }
[dir="rtl"] .ap-register-card .input-group .form-control,
[dir="rtl"] .ap-register-card .select2-container--default .select2-selection--single { border-radius: 11px 0 0 11px !important; }

/* =====================================================
   v2 fixes: full-page background, language picker,
   responsive registration field/icon layout
   ===================================================== */
html.ap-auth-html {
    height: auto !important;
    min-height: 100% !important;
    margin: 0;
    background-color: #050708 !important;
    background-image:
        radial-gradient(circle at 12% 30%, rgba(151, 9, 9, 0.20), transparent 30%),
        radial-gradient(circle at 88% 25%, rgba(239, 35, 35, 0.12), transparent 25%),
        linear-gradient(135deg, #040506 0%, #090b0d 46%, #030405 100%) !important;
    background-attachment: fixed !important;
}

html.ap-auth-html body.ap-auth-body {
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background-color: #050708 !important;
    background-image:
        radial-gradient(circle at 12% 30%, rgba(151, 9, 9, 0.20), transparent 30%),
        radial-gradient(circle at 88% 25%, rgba(239, 35, 35, 0.12), transparent 25%),
        linear-gradient(135deg, #040506 0%, #090b0d 46%, #030405 100%) !important;
    background-attachment: fixed !important;
}

.ap-auth-topbar {
    z-index: 1000;
    overflow: visible;
}

.ap-auth-main {
    z-index: 2;
    overflow: visible;
}

.ap-auth-actions,
.ap-auth-language {
    position: relative;
    overflow: visible;
}

/* Standalone language dropdown: it no longer depends on the global DaisyUI dropdown. */
.ap-language-picker {
    position: relative;
    z-index: 1100;
    margin: 0;
    color: #fff;
}

.ap-language-picker > summary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid var(--ap-border);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    list-style: none;
    cursor: pointer;
    user-select: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.ap-language-picker > summary::-webkit-details-marker { display: none; }
.ap-language-picker > summary::marker { display: none; content: ""; }
.ap-language-picker > summary:hover,
.ap-language-picker[open] > summary {
    border-color: rgba(239, 35, 35, .55);
    background: rgba(239, 35, 35, .10);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.ap-language-chevron {
    font-size: 9px;
    transition: transform .2s ease;
}
.ap-language-picker[open] .ap-language-chevron { transform: rotate(180deg); }

.ap-language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1200;
    width: 220px;
    max-height: min(360px, 65vh);
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: #121518;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    list-style: none;
}

.ap-language-menu li { margin: 0; padding: 0; }
.ap-language-menu a {
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 11px;
    border-radius: 9px;
    color: #e7e9ec !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
}
.ap-language-menu a:hover,
.ap-language-menu a:focus,
.ap-language-menu a.is-active {
    color: #fff !important;
    background: rgba(239, 35, 35, .14);
}
.ap-language-menu a i { color: #ff4a4a; font-size: 11px; }

/* Registration fields: replace Bootstrap's table-based input group with a flexible layout. */
.ap-register-card .wizard > .content > .body fieldset {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 16px;
    align-content: start;
}

.ap-register-card .wizard > .content > .body fieldset > legend {
    grid-column: 1 / -1;
}

.ap-register-card .wizard > .content > .body fieldset > [class*="col-"] {
    min-width: 0;
    float: none !important;
    width: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.ap-register-card .wizard > .content > .body fieldset > .col-md-12 { grid-column: span 12; }
.ap-register-card .wizard > .content > .body fieldset > .col-md-6,
.ap-register-card .wizard > .content > .body fieldset > .col-sm-6 { grid-column: span 6; }
.ap-register-card .wizard > .content > .body fieldset > .col-md-4 { grid-column: span 4; }
.ap-register-card .wizard > .content > .body fieldset > .clearfix { display: none !important; }

.ap-register-card .input-group {
    width: 100%;
    min-width: 0;
    display: flex !important;
    align-items: stretch;
    table-layout: auto !important;
}

.ap-register-card .input-group-addon {
    width: 44px !important;
    min-width: 44px;
    height: 46px;
    flex: 0 0 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    line-height: 1;
    white-space: nowrap;
}

.ap-register-card .input-group-addon i {
    width: 16px;
    display: inline-block;
    text-align: center;
    font-size: 14px;
    line-height: 1;
}

.ap-register-card .input-group > .form-control,
.ap-register-card .input-group > .select2-container {
    min-width: 0 !important;
    width: 1% !important;
    flex: 1 1 auto !important;
}

.ap-register-card .input-group > .select2-container .select2-selection--single {
    width: 100% !important;
}

.ap-register-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 13px;
    padding-right: 34px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-register-card input[type="file"] {
    overflow: hidden;
    padding: 5px 6px !important;
    line-height: 34px;
}

.ap-register-card input[type="file"]::file-selector-button {
    height: 34px;
    margin: 0 10px 0 0;
    padding: 0 13px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(100deg, #a80a0a, #ef2323);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 760px) {
    .ap-register-card .wizard > .content > .body fieldset > .col-md-12,
    .ap-register-card .wizard > .content > .body fieldset > .col-md-6,
    .ap-register-card .wizard > .content > .body fieldset > .col-sm-6,
    .ap-register-card .wizard > .content > .body fieldset > .col-md-4 {
        grid-column: 1 / -1;
    }

    .ap-register-card .wizard > .content > .body fieldset {
        column-gap: 0;
    }

    .ap-register-card .input-group-addon {
        width: 42px !important;
        min-width: 42px;
        flex-basis: 42px;
    }
}

@media (max-width: 640px) {
    .ap-language-picker > summary {
        min-height: 38px;
        max-width: 132px;
        padding: 0 10px;
        font-size: 11px;
    }

    .ap-language-picker > summary span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ap-language-menu {
        position: fixed;
        top: 70px;
        right: 10px;
        width: min(240px, calc(100vw - 20px));
        max-height: calc(100vh - 86px);
    }

    .ap-register-card .wizard > .content > .body {
        padding-left: 14px;
        padding-right: 14px;
    }
}

[dir="rtl"] .ap-language-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .ap-register-card input[type="file"]::file-selector-button {
    margin: 0 0 0 10px;
}

/* ============================================================
   FINAL FILE UPLOAD CONTROL
   Business logo: caption + Browse only
   Remove / Cancel / Upload stay hidden before and after selection.
   ============================================================ */

.ap-register-card .file-input,
.ap-register-card .file-input-new,
.ap-register-card .file-input-ajax-new,
.ap-register-card .file-caption-main {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* Preview is not needed for the business registration logo field. */
.ap-register-card .file-input .file-preview,
.ap-register-card .file-input .file-preview-thumbnails,
.ap-register-card .file-input .file-input-status {
    display: none !important;
}

/*
 * Krajee FileInput action group.
 * Hide every generated action except the Browse control.
 * The :not(.btn-file) rule also protects against plugin-version class changes.
 */
.ap-register-card .file-input .fileinput-remove,
.ap-register-card .file-input .fileinput-remove-button,
.ap-register-card .file-input .fileinput-cancel,
.ap-register-card .file-input .fileinput-cancel-button,
.ap-register-card .file-input .fileinput-upload,
.ap-register-card .file-input .fileinput-upload-button,
.ap-register-card .file-input .kv-file-remove,
.ap-register-card .file-input .kv-file-upload,
.ap-register-card .file-caption-main > .input-group-btn > .btn:not(.btn-file),
.ap-register-card .file-caption-main > .input-group-append > .btn:not(.btn-file),
.ap-register-card .file-caption-main > .input-group-btn > a:not(.btn-file),
.ap-register-card .file-caption-main > .input-group-append > a:not(.btn-file) {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Caption and Browse stay inside the Upload Logo column. */
.ap-register-card .file-caption-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    gap: 0 !important;
    overflow: hidden !important;
    table-layout: fixed !important;
    border-radius: 11px !important;
}

.ap-register-card .file-caption-main > .file-caption,
.ap-register-card .file-caption-main > .kv-fileinput-caption {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-right: 0 !important;
    border-radius: 11px 0 0 11px !important;
    color: #b9c0c7 !important;
    background: rgba(255, 255, 255, .045) !important;
    box-shadow: none !important;
}

.ap-register-card .file-caption-main .file-caption-name {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #8f98a2 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}

/* Generated wrapper must only occupy the Browse button's width. */
.ap-register-card .file-caption-main > .input-group-btn,
.ap-register-card .file-caption-main > .input-group-append {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    display: flex !important;
    align-items: stretch !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

/* The only visible action. */
.ap-register-card .file-caption-main .btn-file {
    position: relative !important;
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
    height: 46px !important;
    min-height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    flex: 0 0 108px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    overflow: hidden !important;
    border: 1px solid #f13b3b !important;
    border-radius: 0 11px 11px 0 !important;
    color: #fff !important;
    background: linear-gradient(100deg, #a80a0a, #ef2323) !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.ap-register-card .file-caption-main .btn-file:hover,
.ap-register-card .file-caption-main .btn-file:focus {
    color: #fff !important;
    filter: brightness(1.08);
    box-shadow: 0 8px 20px rgba(239, 35, 35, .22) !important;
}

/* Keep the real file input clickable but visually hidden inside Browse. */
.ap-register-card .file-caption-main .btn-file input[type="file"] {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

/* ============================================================
   SELECT2 AUTH THEME
   Select2 appends its open dropdown under body.
   ============================================================ */

body.ap-auth-body .select2-container--open {
    z-index: 10050 !important;
}

body.ap-auth-body .select2-container--open .select2-dropdown {
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 10px !important;
    color: #eef1f4 !important;
    background: #11161b !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .48) !important;
}

body.ap-auth-body .select2-container--open .select2-search--dropdown {
    padding: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    background: #11161b !important;
}

body.ap-auth-body .select2-container--open .select2-search__field {
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    border: 1px solid rgba(255, 255, 255, .16) !important;
    border-radius: 8px !important;
    outline: none !important;
    color: #f8fafc !important;
    caret-color: #ef2323 !important;
    background: #1a2026 !important;
    box-shadow: inset 0 0 0 1px transparent !important;
    font-size: 13px !important;
    line-height: 38px !important;
}

body.ap-auth-body .select2-container--open .select2-search__field:focus {
    border-color: rgba(239, 35, 35, .8) !important;
    box-shadow: 0 0 0 3px rgba(239, 35, 35, .11) !important;
}

body.ap-auth-body .select2-container--open .select2-results,
body.ap-auth-body .select2-container--open .select2-results__options {
    background: #11161b !important;
}

body.ap-auth-body .select2-container--open .select2-results__option {
    min-height: 38px !important;
    padding: 10px 12px !important;
    color: #dce1e6 !important;
    background: #11161b !important;
    font-size: 13px !important;
    line-height: 18px !important;
}

body.ap-auth-body .select2-container--open .select2-results__option[aria-selected="true"] {
    color: #fff !important;
    background: #262d34 !important;
}

body.ap-auth-body .select2-container--open .select2-results__option--highlighted[aria-selected],
body.ap-auth-body .select2-container--open .select2-results__option[aria-selected="true"]:hover {
    color: #fff !important;
    background: linear-gradient(100deg, #b70d0d, #ef2323) !important;
}

body.ap-auth-body .select2-container--open .select2-results__message {
    color: #929ca5 !important;
    background: #11161b !important;
}

@media (max-width: 480px) {
    .ap-register-card .file-caption-main .btn-file {
        width: 94px !important;
        min-width: 94px !important;
        max-width: 94px !important;
        flex-basis: 94px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
    }
}

[dir="rtl"] .ap-register-card .file-caption-main > .file-caption,
[dir="rtl"] .ap-register-card .file-caption-main > .kv-fileinput-caption {
    border-right: 1px solid rgba(255, 255, 255, .12) !important;
    border-left: 0 !important;
    border-radius: 0 11px 11px 0 !important;
}

[dir="rtl"] .ap-register-card .file-caption-main .btn-file {
    border-radius: 11px 0 0 11px !important;
}