:root {
    --auth-primary: var(--bs-primary, #17C653);
    --auth-primary-rgb: var(--bs-primary-rgb, 23, 198, 83);
    --auth-ink: #102033;
    --auth-text: #42526A;
    --auth-muted: #7B8798;
    --auth-line: #DDE5EF;
    --auth-bg: #F5F7FA;
    --auth-radius: 14px;
}

.app-blank {
    background: #f8fafc;
}

.auth-panel {
    position: relative;
    min-height: 100vh;
    padding: 32px;
    background: transparent;
    overflow: auto;
}

.auth-form-shell,
.auth-card {
    position: relative;
    z-index: 1;
}

.auth-form-shell {
    width: min(100%, 520px);
}

.auth-card {
    width: 100%;
    padding: 42px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(16, 32, 51, .08);
    overflow: hidden;
}

.auth-heading {
    text-align: center;
    margin-bottom: 32px;
}

.auth-heading h1 {
    margin: 0;
    color: var(--auth-ink);
    font-size: 2.3rem;
    font-weight: 800;
}

.auth-heading p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: .95rem;
}

.auth-field {
    margin-bottom: 21px;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    color: var(--auth-text);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.auth-input-wrap {
    position: relative;
    border-radius: var(--auth-radius);
}

.auth-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;
    color: var(--auth-muted);
    font-size: 1rem;
    transform: translateY(-50%);
}

.auth-input {
    height: 45px;
    padding: 12px 46px;
    border: 1px solid rgba(var(--auth-primary-rgb), .16);
    border-radius: var(--auth-radius);
    background: #f3f6f9;
    color: var(--auth-ink);
    font-size: .95rem;
    font-weight: 600;
}

.auth-input::placeholder {
    color: #9AA7B7;
    font-weight: 500;
}

.auth-input:focus {
    border-color: var(--auth-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--auth-primary-rgb), .1);
}

.auth-input.is-invalid {
    border-color: var(--bs-danger);
    background: #fff5f5;
    background-image: none !important;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--auth-muted);
    transform: translateY(-50%);
}

.auth-password-toggle:hover {
    color: var(--auth-primary);
}

.auth-captcha-combo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 156px;
    overflow: hidden;
    border: 1px solid rgba(var(--auth-primary-rgb), .16);
    border-radius: var(--auth-radius);
    background: #f3f6f9;
}

.auth-captcha-combo:focus-within {
    border-color: var(--auth-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--auth-primary-rgb), .1);
}

.auth-captcha-combo .auth-input {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.auth-captcha-combo .auth-input:focus {
    box-shadow: none;
}

.auth-captcha-image {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    border: 0;
    border-left: 1px solid rgba(var(--auth-primary-rgb), .16);
    background: #fff;
    color: var(--auth-primary);
}

.auth-captcha-image:hover {
    background: #fff;
}

.auth-captcha-image img {
    max-width: 104px;
    height: 34px;
    object-fit: contain;
}

.auth-error,
.error-msg-container {
    display: block;
    margin-top: 7px;
    color: var(--bs-danger);
    font-size: .78rem;
    font-weight: 600;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 15px 0 28px;
}

.auth-remember .form-check-label {
    color: var(--auth-text);
    font-size: .86rem;
    font-weight: 700;
}

.auth-link {
    color: var(--auth-primary);
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-submit {
    --bs-btn-bg: var(--app-primary, var(--bs-primary, var(--auth-primary)));
    --bs-btn-border-color: var(--app-primary, var(--bs-primary, var(--auth-primary)));
    --bs-btn-hover-bg: var(--app-primary, var(--bs-primary, var(--auth-primary)));
    --bs-btn-hover-border-color: var(--app-primary, var(--bs-primary, var(--auth-primary)));
    --bs-btn-active-bg: var(--app-primary, var(--bs-primary, var(--auth-primary)));
    --bs-btn-active-border-color: var(--app-primary, var(--bs-primary, var(--auth-primary)));
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: var(--auth-radius);
    font-size: 1rem;
    font-weight: 800;
    background-color: var(--app-primary, var(--bs-primary, var(--auth-primary))) !important;
    border-color: var(--app-primary, var(--bs-primary, var(--auth-primary))) !important;
    box-shadow: 0 10px 22px rgba(var(--auth-primary-rgb), .18);
}

.auth-submit:hover,
.auth-submit:focus,
.auth-submit:active {
    background-color: var(--app-primary, var(--bs-primary, var(--auth-primary))) !important;
    border-color: var(--app-primary, var(--bs-primary, var(--auth-primary))) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(var(--auth-primary-rgb), .18);
}

.auth-visual {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 34%, rgba(64, 154, 255, .46), transparent 33%),
        linear-gradient(145deg, rgba(5, 20, 48, .94), rgba(22, 88, 164, .86) 48%, rgba(4, 18, 42, .96)),
        var(--auth-bg-image) center / cover no-repeat;
}

.auth-visual-overlay {
    position: relative;
    width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 54px 68px;
    color: #fff;
}

.auth-visual-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: min(100%, 540px);
    text-align: center;
}

.auth-visual-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
}

.auth-visual-mark {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
}

.auth-visual-mark i {
    color: #fff;
    font-size: 1.35rem;
}

.auth-visual-brand h2 {
    margin: 0;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.auth-visual-logo-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 500px);
    min-height: 270px;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .28);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08)),
        rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
    box-shadow:
        0 28px 70px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .35);
    overflow: hidden;
}

.auth-visual-logo-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .14);
    pointer-events: none;
}

.auth-visual-logo-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -70px;
    right: -60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    filter: blur(4px);
}

.auth-visual-logo-card img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .24));
    transition: transform .3s ease, filter .3s ease;
}

.auth-visual-logo-card:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .3));
}

.auth-visual-copy {
    margin-top: 22px;
}

.auth-visual-copy span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .7);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.auth-visual-copy h3 {
    max-width: 460px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .88);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.6;
}

.auth-visual-features {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.auth-visual-features div {
    min-height: 50px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 14px 10px;
    border: 3px solid rgba(151, 205, 255, .24);
    border-radius: var(--auth-radius);
    background: rgba(33, 126, 227, .18);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

.auth-visual-features i {
    color: #d9ecff;
    font-size: 1.4rem;
}

.auth-visual-features span {
    color: rgba(255, 255, 255, .9);
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.25;
}

@media (max-width: 991.98px) {
    .auth-panel {
        min-height: auto;
        padding: 24px 18px;
    }

    .auth-card {
        padding: 30px;
    }

    .auth-visual {
        min-height: 320px;
    }

    .auth-visual-overlay {
        min-height: 320px;
        padding: 24px 28px 36px;
    }

    .auth-visual-brand h2 {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 24px;
        border-radius: 18px;
    }

    .auth-heading h1 {
        font-size: 1.9rem;
    }

    .auth-captcha-combo {
        grid-template-columns: 1fr;
    }

    .auth-captcha-image {
        border-top: 1px solid rgba(var(--auth-primary-rgb), .16);
        border-left: 0;
        justify-content: space-between;
        padding-inline: 12px;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-visual {
        min-height: 220px;
    }

    .auth-visual-overlay {
        min-height: 220px;
        padding: 20px 22px 28px;
    }

    .auth-visual-brand h2 {
        font-size: 1.55rem;
    }

    .auth-visual-features {
        grid-template-columns: 1fr;
        gap: 8px;
        max-width: 300px;
        margin-top: 18px;
    }

    .auth-visual-features div {
        min-height: auto;
        flex-direction: row;
        justify-content: flex-start;
        padding: 10px 12px;
        text-align: left;
    }
}
