/* Auth Pages */
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, .12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(99, 102, 241, .08) 0%, transparent 50%);
    pointer-events: none;
}

.auth-card {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .3);
    width: 100%;
    max-width: 460px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #6366f1, var(--accent));
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-bottom: .5rem;
}

.auth-brand img {
    max-height: 40px;
}

.auth-brand span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

.auth-split-shell {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.03fr 1fr;
}

.auth-split-panel {
    position: relative;
    min-height: 100%;
}

.auth-split-brand {
    background: linear-gradient(180deg, #1f4cb8 0%, #0e1c3d 100%);
    color: #ffffff;
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-split-brand h1 {
    font-size: clamp(1.9rem, 2.2vw, 2.4rem);
    line-height: 1.15;
    margin: 0 0 .85rem;
    letter-spacing: .01em;
    font-weight: 800;
}

.auth-split-brand p {
    max-width: 460px;
    color: rgba(255, 255, 255, .84);
    font-size: .98rem;
    margin: 0 0 1.65rem;
}

.auth-brand-box {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 1.2rem;
}

.auth-brand-box img {
    width: 120px;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 14px 36px rgba(17, 36, 88, .33);
    background: #ffffff;
    border-radius: 10px;
    object-fit: contain;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: .5rem 0 0;
    display: grid;
    gap: .72rem;
}

.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: rgba(255, 255, 255, .93);
    font-weight: 500;
    font-size: .94rem;
}

.auth-feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #eef4ff;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}

.auth-orb-lg {
    width: 180px;
    height: 180px;
    right: 34px;
    top: 62px;
}

.auth-orb-sm {
    width: 92px;
    height: 92px;
    right: 132px;
    bottom: 92px;
}

.auth-split-form-wrap {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: clamp(1.6rem, 3.2vw, 2.6rem); */
}

.auth-split-form {
    width: min(470px, 100%);
    border: 1px solid #00000041;
    padding: 2.5rem 2.25rem;
    box-shadow: 5px 5px #1d3f93;
    background: #ffffff;
    border-radius: 12px;
}

.auth-split-form.auth-split-form-wide {
    width: min(470px, 100%);
}

.auth-split-form h2 {
    margin: 0;
    font-size: clamp(1.95rem, 2.4vw, 2.3rem);
    color: #1d3f93;
    font-weight: 800;
}

.auth-subtitle {
    margin: .45rem 0 1.8rem;
    color: #8a97ad;
    font-size: .95rem;
}

.auth-input-label {
    display: block;
    margin-bottom: .55rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .72rem;
    font-weight: 700;
    color: #60708a;
}

.auth-input-group {
    position: relative;
}

.auth-input-group .form-control {
    border: 1px solid #d9e0ed;
    border-radius: 11px;
    min-height: 48px;
    padding: .7rem 0.65rem .7rem 2.55rem;
    font-size: .95rem;
    color: #1a2a45;
}

.auth-input-group .form-control:focus {
    border-color: #4a74df;
    box-shadow: 0 0 0 4px rgba(65, 105, 215, .14);
}

.auth-input-icon {
    position: absolute;
    left: .88rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa8bf;
    font-size: .95rem;
}

.auth-input-icon-end {
    left: auto;
    right: .88rem;
}

.auth-password-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

.auth-password-toggle:focus {
    outline: none;
}

.auth-password-toggle:focus-visible {
    color: #4a74df;
}

.auth-inline-link {
    font-size: .82rem;
    font-weight: 700;
    color: #20a653;
    text-decoration: none;
}

.auth-inline-link:hover {
    color: #168742;
}

.auth-check .form-check-input {
    border-color: #bcc8d9;
}

.auth-check .form-check-label {
    color: #44526b;
    font-size: .9rem;
}

.auth-submit-btn {
    border: 0;
    min-height: 48px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #224ba8 0%, #13a34c 100%);
    color: #ffffff;
}

.auth-submit-btn:hover,
.auth-submit-btn:focus {
    color: #ffffff;
    background: linear-gradient(90deg, #1d428f 0%, #10833e 100%);
}

.auth-register-block {
    text-align: center;
    margin-top: 1rem;
}

.auth-register-block small {
    display: block;
    color: #b2bdce;
    letter-spacing: .09em;
    font-size: .68rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.auth-register-block p {
    color: #8492a6;
    font-size: .95rem;
}

.auth-register-block a {
    color: #1ea251;
    font-weight: 700;
    text-decoration: none;
}

.auth-register-block a:hover {
    color: #158545;
}

.auth-otp-field {
    letter-spacing: .42em;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .auth-wrapper {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    .auth-split-shell {
        min-height: 100dvh;
        height: auto;
        border-radius: 0;
        box-shadow: none;
        grid-template-columns: 1fr;
    }

    .auth-split-brand {
        padding: 1rem;

    }

    .auth-brand-box {
        width: 75px;
        height: 75px;
        margin-bottom: 0.5rem;
    }

    .auth-brand-box img {
        width: 74px;
        height: 74px;
    }

    .auth-split-brand h1 {
        font-size: 1.65rem;
    }

    .auth-split-brand p {
        font-size: .9rem;
        margin: 0 0 0.5rem;
    }

    .auth-feature-list li {
        font-size: .87rem;
    }

    .auth-split-form-wrap {
        padding: 1rem;
    }

    .auth-split-form {
        width: 100%;
        max-width: 430px;
    }
    .auth-subtitle{
        font-size: .82rem;
        margin: 0 0 1rem;
    }
}