/* =====================================
   AUTH LOGIN
===================================== */

.auth-login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    padding: 40px 20px;

    direction: rtl;

    background:
        radial-gradient(
            circle at 10% 75%,
            rgba(47, 128, 237, .08),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 25%,
            rgba(41, 98, 255, .06),
            transparent 26%
        ),
        #07111f;

    color: #eaf1f8;
}


/* =====================================
   Wrapper
===================================== */

.auth-login-wrapper {
    position: relative;

    width: 100%;
    max-width: 610px;

    z-index: 10;
}


/* =====================================
   Card
===================================== */

.auth-login-card {
    background:
        linear-gradient(
            145deg,
            rgba(16, 29, 48, .98),
            rgba(10, 22, 38, .98)
        );

    border: 1px solid #22334a;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255, 255, 255, .025);
}


/* =====================================
   Header
===================================== */

.auth-login-header {
    padding: 34px 40px 10px;

    text-align: center;
}


.auth-login-logo {
    width: 66px;
    height: 66px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(47, 128, 237, .32);

    border-radius: 18px;

    color: #58a6ff;

    font-size: 28px;

    background: rgba(47, 128, 237, .08);

    box-shadow:
        0 0 35px rgba(47, 128, 237, .07);
}


.auth-login-header h1 {
    margin: 0;

    color: #f3f7fb;

    font-size: 1.75rem;

    font-weight: 700;
}


.auth-login-header p {
    margin-top: 9px;
    margin-bottom: 0;

    color: #8da0b8;

    font-size: .9rem;
}


/* =====================================
   Divider
===================================== */

.auth-login-divider {
    position: relative;

    margin-top: 30px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #2a3d57,
            transparent
        );
}


.auth-login-divider span {
    position: absolute;

    width: 8px;
    height: 8px;

    top: 50%;
    left: 50%;

    background: #3b82f6;

    transform:
        translate(-50%, -50%)
        rotate(45deg);

    box-shadow:
        0 0 10px rgba(59, 130, 246, .35);
}


/* =====================================
   Body
===================================== */

.auth-login-body {
    padding: 28px 40px 38px;
}


/* =====================================
   Form
===================================== */

.auth-form-group {
    margin-bottom: 22px;
}


.auth-form-group > label {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 9px;

    color: #d9e3ee;

    font-size: .88rem;

    font-weight: 500;
}


.auth-form-group > label i {
    color: #4d9df7;
}


/* =====================================
   Inputs
===================================== */

.auth-input {
    position: relative;
}


.auth-input input,
.auth-captcha-input input {
    width: 100%;

    height: 52px;

    padding:
        0 48px
        0 15px;

    background: #0a1727;

    border:
        1px solid #263a54;

    border-radius: 8px;

    outline: none;

    color: #edf4fb;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}


.auth-input input::placeholder,
.auth-captcha-input input::placeholder {
    color: #60758f;
}


.auth-input input:focus,
.auth-captcha-input input:focus {
    background: #0c1b2e;

    border-color: #3b82f6;

    box-shadow:
        0 0 0 3px
        rgba(59, 130, 246, .10);
}


/* =====================================
   Input icon
===================================== */

.auth-input-icon {
    position: absolute;

    right: 0;
    top: 0;

    width: 48px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #6f849d;

    pointer-events: none;

    transition: color .15s ease;
}


.auth-input:focus-within .auth-input-icon {
    color: #4d9df7;
}


/* =====================================
   Captcha
===================================== */

.auth-captcha-row {
    display: flex;
    align-items: stretch;

    gap: 10px;
}


.auth-captcha-input {
    width: 34%;
}


.auth-captcha-input input {
    padding: 0 14px;

    text-align: center;

    direction: ltr;
}


.auth-captcha-refresh {
    width: 54px;

    flex-shrink: 0;

    border:
        1px solid #263a54;

    border-radius: 8px;

    background: #10223a;

    color: #4d9df7;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}


.auth-captcha-refresh:hover {
    background: #153152;

    border-color: #347bd3;

    color: #77b7ff;

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, .07);
}


.auth-captcha-refresh i {
    transition:
        transform .25s ease;
}


.auth-captcha-refresh:hover i {
    transform:
        rotate(90deg);
}


.auth-captcha-image {
    flex: 1;

    height: 52px;

    border-radius: 8px;

    overflow: hidden;

    border:
        1px solid #263a54;

    background: #0a1727;
}


.auth-captcha-image img {
    width: 100%;
    height: 100%;

    display: block;
}


/* =====================================
   Remember
===================================== */

.auth-remember {
    margin-top: 6px;
    margin-bottom: 25px;

    color: #a1b0c2;
}


.auth-remember .custom-control-label {
    cursor: pointer;
}


.auth-remember
.custom-control-label::before {
    background: #0a1727;

    border-color: #354a65;
}


.auth-remember
.custom-control-input:checked
~ .custom-control-label::before {
    background: #2f80ed;

    border-color: #2f80ed;
}


/* =====================================
   Login button
===================================== */

.auth-login-button {
    width: 100%;

    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    border: 1px solid #347bd3;

    border-radius: 9px;

    background:
        linear-gradient(
            90deg,
            #245f9f,
            #1d4f86
        );

    color: #f5f9ff;

    font-size: .95rem;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, .20);

    transition:
        transform .15s ease,
        background .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}


.auth-login-button:hover {
    background:
        linear-gradient(
            90deg,
            #2f80ed,
            #256bbd
        );

    border-color: #4c98ee;

    box-shadow:
        0 12px 34px
        rgba(37, 107, 189, .20);

    transform:
        translateY(-1px);
}


.auth-login-button:active {
    transform:
        translateY(0);
}


/* =====================================
   Validation
===================================== */

.auth-login-page .text-danger {
    color:
        #f87171 !important;
}


.auth-login-page
.valid-feedback,
.auth-login-page
.invalid-feedback {
    margin-top: 6px;

    font-size: .78rem;
}


/* =====================================
   Footer
===================================== */

.auth-login-footer {
    margin-top: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: #64778f;

    font-size: .8rem;
}


.auth-login-footer i {
    color: #3f8bdc;
}


/* =====================================
   Decoration
===================================== */

.auth-login-decoration {
    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    border:
        1px solid rgba(54, 105, 162, .20);

    pointer-events: none;
}


.auth-login-decoration-left {
    left: -330px;
    bottom: -100px;
}


.auth-login-decoration-right {
    right: -380px;
    top: 80px;
}


/* =====================================
   Decorative dots
===================================== */

.auth-login-dots {
    position: absolute;

    width: 150px;
    height: 110px;

    opacity: .30;

    background-image:
        radial-gradient(
            #3676ba 1.4px,
            transparent 1.4px
        );

    background-size:
        24px 24px;

    pointer-events: none;
}


.auth-login-dots-top {
    top: 25px;
    left: 30px;
}


.auth-login-dots-bottom {
    right: 35px;
    bottom: 30px;
}


/* =====================================
   Responsive
===================================== */

@media (max-width: 767px) {

    .auth-login-page {
        padding:
            20px 15px;
    }

    .auth-login-header {
        padding:
            28px 22px 8px;
    }

    .auth-login-body {
        padding:
            24px 22px 30px;
    }

    .auth-login-card {
        border-radius:
            14px;
    }

    .auth-captcha-row {
        flex-wrap:
            wrap;
    }

    .auth-captcha-input {
        width:
            calc(100% - 64px);
    }

    .auth-captcha-image {
        flex-basis:
            100%;
    }

}


/* =====================================
   Auth Page Reset
===================================== */

body.auth-page {
    margin: 0;

    background:
        #07111f !important;

    color:
        #eaf1f8;
}


body.auth-page .container-application {
    padding:
        0 !important;

    background:
        transparent !important;
}


body.auth-page .main-content {
    padding:
        0 !important;

    margin:
        0 !important;

    background:
        transparent !important;
}


body.auth-page .page-content {
    padding:
        0 !important;

    margin:
        0 !important;

    background:
        transparent !important;
}


.auth-page .page-content,
.auth-page .container-application .page-content,
.auth-page .container-application .footer {
    padding:
        0 !important;
}


.auth-login-page {
    margin:
        0;
}


.auth-login-page .container,
.auth-login-page .container-fluid {
    max-width:
        100%;

    padding:
        0 !important;
}


@property --auth-border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.auth-login-card {
    --auth-border-angle: 0deg;

    position: relative;

    overflow: hidden;

    border: 1px solid transparent;
    border-radius: 18px;

background:
    linear-gradient(
        145deg,
        rgba(16, 29, 48, .985),
        rgba(10, 22, 38, .985)
    ) padding-box,

    conic-gradient(
        from var(--auth-border-angle),

        rgba(34, 51, 74, .65) 0deg,
        rgba(34, 51, 74, .65) 250deg,

        rgba(47, 128, 237, .18) 285deg,
        rgba(88, 166, 255, .42) 315deg,
        rgba(130, 190, 255, .32) 332deg,

        rgba(47, 128, 237, .15) 348deg,
        rgba(34, 51, 74, .65) 360deg
    ) border-box;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255, 255, 255, .025);

    animation:
        auth-border-rotate 5s linear infinite;
}


@keyframes auth-border-rotate {
    to {
        --auth-border-angle: 360deg;
    }
}

.auth-login-card {
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .35),
        0 0 40px rgba(47, 128, 237, .035),
        inset 0 1px 0 rgba(255, 255, 255, .025);
}



.auth-login-logo {
    position: relative;

    width: 66px;
    height: 66px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(88, 166, 255, .28);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(47, 128, 237, .12),
            rgba(47, 128, 237, .035)
        );

    color: #58a6ff;
    font-size: 28px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04),
        0 8px 25px rgba(0, 0, 0, .15);

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;

    animation:
        auth-logo-breathe 4s ease-in-out infinite;
}


/* Glow پشت لوگو */
.auth-login-logo::before {
    content: "";

    position: absolute;

    width: 45px;
    height: 45px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(88, 166, 255, .20),
            rgba(47, 128, 237, .06) 45%,
            transparent 72%
        );

    filter: blur(8px);

    opacity: .5;

    animation:
        auth-logo-glow 4s ease-in-out infinite;

    pointer-events: none;
}


/* Shield */
.auth-login-logo i {
    position: relative;

    z-index: 2;

    color: #58a6ff;

    text-shadow:
        0 0 12px rgba(88, 166, 255, .18);

    /* animation:
        auth-shield-float 1.5s ease-in-out infinite; */
}


/* کل باکس خیلی نرم نفس می‌کشه */
@keyframes auth-logo-breathe {

    0%,
    100% {
        border-color:
            rgba(88, 166, 255, .25);

        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .04),
            0 8px 25px rgba(0, 0, 0, .15),
            0 0 0 rgba(47, 128, 237, 0);
    }

    50% {
        border-color:
            rgba(88, 166, 255, .48);

        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .05),
            0 8px 25px rgba(0, 0, 0, .15),
            0 0 24px rgba(47, 128, 237, .09);
    }
}


/* Glow پشت Shield */
@keyframes auth-logo-glow {

    0%,
    100% {
        transform: scale(.85);
        opacity: .30;
    }

    50% {
        transform: scale(1.15);
        opacity: .75;
    }
}


/* حرکت خیلی جزئی Shield */
@keyframes auth-shield-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-2px) scale(1.03);
    }
}


/* Hover */
.auth-login-logo:hover {
    transform: translateY(-2px);

    border-color:
        rgba(88, 166, 255, .65);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .06),
        0 10px 30px rgba(0, 0, 0, .18),
        0 0 30px rgba(47, 128, 237, .13);
}

.auth-login-card {
    animation:
        auth-card-enter .65s cubic-bezier(.22, 1, .36, 1) both,
        auth-border-rotate 7s linear infinite;
}

@keyframes auth-card-enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-login-button {
    position: relative;
    overflow: hidden;
}

.auth-login-button::after {
    content: "";

    position: absolute;
    top: -50%;
    left: -60%;

    width: 35%;
    height: 200%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .16),
        transparent
    );

    transform: rotate(18deg);

    pointer-events: none;
}

.auth-login-button:hover::after {
    animation: auth-button-shine .7s ease;
}

@keyframes auth-button-shine {
    from {
        left: -60%;
    }

    to {
        left: 130%;
    }
}

.auth-login-dots {
    position: absolute;

    width: 170px;
    height: 120px;

    pointer-events: none;

    z-index: 1;

    opacity: .30;

    background-image:
        radial-gradient(
            circle,
            rgba(88, 166, 255, .75) 1.3px,
            transparent 1.5px
        );

    background-size:
        24px 24px;

    -webkit-mask-image:
        linear-gradient(
            115deg,
            rgba(0, 0, 0, .20) 15%,
            #000 45%,
            rgba(0, 0, 0, .15) 75%
        );

    mask-image:
        linear-gradient(
            115deg,
            rgba(0, 0, 0, 0.488) 15%,
            #000 45%,
            rgba(0, 0, 0, 0.15) 75%
        );

    animation:
        auth-dots-drift
        9s ease-in-out infinite;
}


@keyframes auth-dots-drift {

    0%,
    100% {
        transform:
            translate3d(0, 0, 0);

        opacity: .20;

        background-position:
            0 0;
    }

    50% {
        transform:
            translate3d(7px, -6px, 0);

        opacity: .38;

        background-position:
            5px 5px;
    }
}

@property --decoration-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.auth-login-decoration {
    --decoration-angle: 0deg;

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    padding: 1px;

background:
    conic-gradient(
        from var(--decoration-angle),

        rgba(54, 105, 162, .07) 0deg,
        rgba(54, 105, 162, .07) 230deg,

        rgba(47, 128, 237, .10) 255deg,
        rgba(59, 130, 246, .16) 285deg,
        rgba(88, 166, 255, .28) 310deg,

        rgba(142, 197, 255, .42) 325deg,

        rgba(88, 166, 255, .24) 340deg,
        rgba(47, 128, 237, .10) 355deg,

        rgba(54, 105, 162, .07) 360deg
    );

    /* فقط border نمایش داده شود */
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);

    -webkit-mask-composite: xor;

    mask-composite: exclude;

    pointer-events: none;

    z-index: 1;

    animation:
        auth-decoration-border-light
        9s linear infinite;
}


.auth-login-decoration-right {
    right: -380px;
    top: 80px;
}


.auth-login-decoration-left {
    left: -330px;
    bottom: -100px;
}


@keyframes auth-decoration-border-light {
    to {
        --decoration-angle: 360deg;
    }
}