:root {
    --auth-bg: #060711;
    --auth-panel: #111225;
    --auth-panel-2: #17182d;
    --auth-line: rgba(148, 163, 184, 0.22);
    --auth-text: #f8fafc;
    --auth-soft: #cbd5e1;
    --auth-muted: #8fa1b8;
    --auth-primary: #19c8ff;
    --auth-primary-strong: #7c3aed;
    --auth-accent: #ff2ebd;
    --auth-danger: #f43f5e;
}

html,
body.auth-client {
    min-height: 100%;
}

body.auth-client {
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 18% 18%, rgba(25, 200, 255, 0.22), transparent 30%),
        radial-gradient(circle at 82% 24%, rgba(255, 46, 189, 0.17), transparent 28%),
        linear-gradient(135deg, #060711 0%, #090a14 52%, #100d23 100%);
}

body.auth-client:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
}

.auth-client .auth-shell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 18px;
    padding-bottom: 18px;
}

.auth-client .auth-shell > .row,
.auth-client .auth-shell > .container,
.auth-client .auth-shell > .auth-card-row {
    width: 100%;
}

.auth-client .inverted-box {
    position: relative;
    width: 100%;
    padding: 1px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(25, 200, 255, 0.55), rgba(124, 58, 237, 0.42), rgba(255, 46, 189, 0.48));
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.auth-client .inverted-box:before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 17px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 36%),
        var(--auth-panel);
}

.auth-client .ArrowButton {
    display: none;
}

.auth-client .inverted-radius {
    position: relative;
    z-index: 1;
    height: auto !important;
    max-height: none;
    overflow: visible;
    padding: 32px 40px;
    color: var(--auth-text);
    background: transparent !important;
    border-radius: 18px;
}

.auth-client .logo {
    margin-bottom: 22px;
    text-align: center;
}

.auth-client .logo img {
    width: auto;
    max-width: 190px;
    max-height: 54px;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

.auth-client h1,
.auth-client h2,
.auth-client h3,
.auth-client h4,
.auth-client .card-header {
    color: var(--auth-text);
    font-weight: 900;
    letter-spacing: 0;
}

.auth-client h3 {
    margin-bottom: 6px;
    font-size: 26px;
    line-height: 32px;
}

.auth-client .form_group {
    position: relative;
    margin-bottom: 14px;
}

.auth-client .form-label,
.auth-client label,
.auth-client .col-form-label {
    margin-bottom: 8px;
    color: var(--auth-soft);
    font-size: 13px;
    line-height: 18px;
    font-weight: 800;
}

.auth-client sup {
    color: var(--auth-accent);
}

.auth-client .form-control,
.auth-client .form-select,
.auth-client select {
    min-height: 46px;
    color: var(--auth-text) !important;
    background-color: var(--auth-panel-2) !important;
    border: 1px solid var(--auth-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.auth-client .form-control::placeholder {
    color: var(--auth-muted);
}

.auth-client .form-control:focus,
.auth-client .form-select:focus,
.auth-client select:focus {
    border-color: var(--auth-primary) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22) !important;
}

.auth-client select option {
    color: #111827;
}

.auth-client .phoneinline {
    gap: 10px;
}

.auth-client #phonecode {
    width: 78px;
    flex: 0 0 78px;
    margin-right: 0;
    text-align: center;
}

.auth-client .eye-icon {
    position: absolute;
    right: 14px;
    bottom: 14px;
    color: var(--auth-soft);
    cursor: pointer;
}

.auth-client .btn_secondary,
.auth-client .btn-primary,
.auth-client button[type="submit"] {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-strong) 58%, var(--auth-accent)) !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.28);
}

.auth-client .btn_secondary img,
.auth-client .logregibtn img {
    filter: brightness(0) invert(1);
}

.auth-client .btn-link,
.auth-client a {
    color: var(--auth-primary);
}

.auth-client .text_dark,
.auth-client .registration_acct p {
    color: var(--auth-soft) !important;
}

.auth-client .logregibtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    margin-left: 6px;
    padding: 8px 12px;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--auth-line);
    border-radius: 999px;
}

.auth-client .logregibtn:before {
    display: none;
}

.auth-client .logregibtn:hover {
    background: rgba(25, 200, 255, 0.16);
    border-color: rgba(25, 200, 255, 0.36);
}

.auth-client .registration_acct {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--auth-line);
}

.auth-client .pageregister .inverted-radius {
    max-height: calc(100vh - 36px);
    overflow-y: auto;
}

.auth-client .alert {
    color: var(--auth-text);
    background: rgba(17, 18, 37, 0.92);
    border: 1px solid var(--auth-line);
    border-radius: 12px;
}

.auth-client .alert-danger {
    border-color: rgba(244, 63, 94, 0.45);
}

.auth-client .alert-success {
    border-color: rgba(34, 197, 94, 0.45);
}

.auth-client .invalid-feedback,
.auth-client .invalid-feedback small,
.auth-client .invalid-feedback strong {
    color: #ff8aa0;
}

.auth-client .card {
    color: var(--auth-text);
    background: var(--auth-panel);
    border: 1px solid var(--auth-line);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.auth-client .card-header {
    background: transparent;
    border-color: var(--auth-line);
}

.auth-client .card-body {
    color: var(--auth-soft);
}

@media (max-width: 767px) {
    .auth-client .auth-shell {
        align-items: flex-start;
        min-height: auto;
        padding: 14px;
    }

    body.auth-client {
        min-height: 100dvh;
        overflow-y: auto;
    }

    .auth-client .auth-shell .row {
        margin-right: 0;
        margin-left: 0;
    }

    .auth-client .auth-shell [class*="col-"] {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .auth-client .inverted-radius {
        max-height: none;
        height: auto !important;
        padding: 24px 18px;
        overflow: visible;
    }

    .auth-client .pageregister .inverted-radius {
        max-height: none;
        height: auto !important;
        overflow: visible !important;
    }

    .auth-client .pageregister {
        min-height: auto !important;
        height: auto !important;
        align-items: flex-start !important;
    }

    .auth-client h3 {
        font-size: 24px;
        line-height: 30px;
    }

    .auth-client .btn_secondary,
    .auth-client .btn-primary,
    .auth-client button[type="submit"] {
        width: 100%;
    }

    .auth-client .logregibtn {
        margin-top: 8px;
        margin-left: 0;
    }
}

/* Logo-aligned auth refresh */
:root {
    --auth-bg: #05050c;
    --auth-panel: #10101d;
    --auth-panel-2: #171629;
    --auth-line: rgba(167, 90, 255, 0.24);
    --auth-text: #ffffff;
    --auth-soft: #d7c7ff;
    --auth-muted: #a9a1bd;
    --auth-primary: #a855f7;
    --auth-primary-strong: #7c3aed;
    --auth-accent: #c084fc;
}

body.auth-client {
    background:
        radial-gradient(circle at 20% 12%, rgba(168, 85, 247, 0.22), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(124, 58, 237, 0.16), transparent 30%),
        #05050c;
}

body.auth-client:before {
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.06) 1px, transparent 1px);
}

.auth-client .inverted-box {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.62), rgba(124, 58, 237, 0.38));
}

.auth-client .inverted-box:before {
    background:
        linear-gradient(135deg, rgba(168, 85, 247, 0.10), transparent 34%),
        var(--auth-panel);
}

.auth-client .logo {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 22px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #11101f, #1b1233);
    border: 1px solid rgba(168, 85, 247, 0.34);
    border-radius: 12px;
}

.auth-client .logo img {
    display: block;
    max-width: 220px;
    max-height: 50px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.34));
}

.auth-client .btn_secondary,
.auth-client .btn-primary,
.auth-client button[type="submit"] {
    background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.26);
}

.auth-client .form-control,
.auth-client .form-select,
.auth-client select {
    background-color: #171629 !important;
    border-color: rgba(167, 90, 255, 0.24) !important;
}

.auth-client .form-control:focus,
.auth-client .form-select:focus,
.auth-client select:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.20) !important;
}

.auth-client .btn-link,
.auth-client a {
    color: #c084fc;
}

/* Final auth polish for a tighter, more premium client entry. */
.auth-client .auth-shell {
    padding-right: 16px;
    padding-left: 16px;
}

.auth-client .inverted-box {
    border-radius: 20px;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.auth-client .inverted-box:after {
    content: "";
    position: absolute;
    inset: 1px;
    pointer-events: none;
    border-radius: 19px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%);
}

.auth-client .inverted-radius {
    padding: 34px 38px;
}

.auth-client .form-control,
.auth-client .form-select,
.auth-client select {
    min-height: 48px;
}

.auth-client .btn_secondary,
.auth-client .btn-primary,
.auth-client button[type="submit"] {
    min-height: 50px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-client .btn_secondary:hover,
.auth-client .btn-primary:hover,
.auth-client button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(124, 58, 237, 0.34);
}

@media (max-width: 575px) {
    .auth-client .inverted-radius {
        padding: 26px 20px;
    }

    .auth-client .logo img {
        max-width: 188px;
    }
}
