/* =========================================================
   EKOR — LOGIN PAGE
   اختصاصی صفحه ورود
========================================================= */

.auth-section {
    width: 100%;
    min-height: calc(100vh - 90px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 70px 20px 90px;

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(11, 16, 245, .07),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(241, 20, 20, .045),
            transparent 30%
        ),
        #f7f9fc;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
    position: relative;

    width: 100%;
    max-width: 540px;

    margin: 0 auto;
    padding: 48px;

    background: #fff;

    border: 1px solid #e7eaf1;
    border-radius: 26px;

    box-shadow:
        0 25px 70px rgba(11, 15, 46, .09);

    animation: loginFade .6s ease both;
}


/* =========================================================
   HEADER
========================================================= */

.login-top {
    text-align: center;

    margin-bottom: 36px;
}

.login-top h2 {
    margin: 0 0 10px;

    color: #0B0F2E;

    font-size: 32px;
    line-height: 1.5;
    font-weight: 800;
}

.login-top p {
    margin: 0;

    color: #7a8292;

    font-size: 14px;
    line-height: 1.9;
}


/* =========================================================
   FORM
========================================================= */

.login-card form {
    width: 100%;
    margin: 0;
}


/* =========================================================
   INPUT GROUP
========================================================= */

.auth-input {
    position: relative;

    width: 100%;

    margin-bottom: 23px;
}

.auth-input label {
    display: block;

    margin: 0 0 9px;

    color: #0B0F2E;

    font-size: 14px;
    line-height: 1.8;
    font-weight: 700;
}


/* =========================================================
   INPUT
========================================================= */

.auth-input input {
    display: block;

    width: 100%;
    height: 60px;

    padding: 0 56px;

    border: 1px solid #dce2ec;
    border-radius: 15px;

    outline: none;

    background: #f8faff;
    color: #111827;

    font-family: inherit;
    font-size: 15px;
    line-height: 60px;

    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.auth-input input:hover {
    background: #fff;
    border-color: #cbd3df;
}

.auth-input input:focus {
    background: #fff;

    border-color: #0B10F5;

    box-shadow:
        0 0 0 4px rgba(11, 16, 245, .09);
}

.auth-input input::placeholder {
    color: #a0a8b7;
    opacity: 1;
}


/* =========================================================
   RIGHT ICON
========================================================= */

.auth-input > i {
    position: absolute;

    right: 19px;
    top: 53px;

    z-index: 2;

    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    color: #929cad;

    font-size: 21px;
    line-height: 1;

    pointer-events: none;

    transition: color .25s ease;
}

.auth-input:focus-within > i {
    color: #0B10F5;
}


/* =========================================================
   PASSWORD EYE
========================================================= */

.toggle-password {
    position: absolute;

    left: 19px;
    top: 51px;

    z-index: 5;

    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #929cad;

    cursor: pointer;

    transition:
        color .2s ease,
        transform .2s ease;
}

.toggle-password i {
    margin: 0;

    font-size: 20px;
    line-height: 1;
}

.toggle-password:hover {
    color: #0B10F5;
    transform: scale(1.05);
}


/* =========================================================
   OPTIONS
========================================================= */

.login-options {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin: 3px 0 28px;

    color: #687386;

    font-size: 13px;
}

.remember-box {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin: 0;

    cursor: pointer;
}

.remember-box input {
    width: 16px;
    height: 16px;

    margin: 0;

    accent-color: #0B10F5;

    cursor: pointer;
}

.login-options a {
    color: #0B10F5;

    font-weight: 700;
    text-decoration: none;

    transition: color .2s ease;
}

.login-options a:hover {
    color: #070bb8;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.btn-login {
    position: relative;

    width: 100%;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 25px;

    border: none;
    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #0B10F5 0%,
            #1820ff 100%
        );

    color: #fff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    overflow: hidden;

    box-shadow:
        0 13px 30px rgba(11, 16, 245, .19);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        opacity .25s ease;
}

.btn-login::before {
    content: "";

    position: absolute;

    top: 0;
    left: -130%;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            110deg,
            transparent 20%,
            rgba(255,255,255,.24) 50%,
            transparent 80%
        );

    transition: left .65s ease;
}

.btn-login:hover::before {
    left: 130%;
}

.btn-login:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 38px rgba(11, 16, 245, .25);
}

.btn-login:active {
    transform: scale(.985);
}


/* =========================================================
   LOADING
========================================================= */

.btn-login.loading {
    pointer-events: none;
    opacity: .88;
}

.btn-login.loading span {
    opacity: 0;
}

.btn-login.loading::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 21px;
    height: 21px;

    border: 3px solid rgba(255,255,255,.35);
    border-top-color: #fff;

    border-radius: 50%;

    transform: translate(-50%, -50%);

    animation: loginSpin .7s linear infinite;
}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {
    margin-top: 25px;

    text-align: center;

    color: #7a8292;

    font-size: 14px;
    line-height: 1.9;
}

.login-footer a {
    margin-right: 4px;

    color: #0B10F5;

    font-weight: 800;

    text-decoration: none;
}

.login-footer a:hover {
    color: #070bb8;
}


/* =========================================================
   ERROR ALERT
========================================================= */

.auth-alert {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    width: 100%;

    margin-bottom: 22px;
    padding: 14px 16px;

    border: 1px solid rgba(241, 20, 20, .18);
    border-radius: 14px;

    background: #fff5f5;

    color: #c81e1e;

    font-size: 13px;
    line-height: 1.9;
}

.auth-alert i {
    flex: 0 0 auto;

    margin-top: 2px;

    color: #F11414;

    font-size: 21px;
}


/* =========================================================
   VALIDATION
========================================================= */

.input-error {
    display: block;

    margin-top: 7px;

    color: #F11414;

    font-size: 12px;
    line-height: 1.7;
    font-weight: 600;
}

.auth-input input.is-invalid {
    border-color: #F11414 !important;
    background: #fff8f8 !important;

    box-shadow:
        0 0 0 3px rgba(241,20,20,.06) !important;

    animation: inputShake .35s ease;
}


/* =========================================================
   AUTOFILL
========================================================= */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow:
        0 0 0 1000px #f8faff inset !important;

    -webkit-text-fill-color: #111827 !important;
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes loginFade {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes inputShake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-3px);
    }
}

@keyframes loginSpin {
    to {
        transform:
            translate(-50%, -50%)
            rotate(360deg);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .auth-section {
        min-height: calc(100vh - 75px);

        padding: 55px 20px 70px;
    }

    .login-card {
        max-width: 520px;

        padding: 42px 38px;
    }

    .login-top h2 {
        font-size: 30px;
    }

    .auth-input > i {
        top: 51px;
    }

    .toggle-password {
        top: 49px;
    }

    .btn-login {
        height: 59px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .auth-section {
        min-height: auto;

        align-items: flex-start;

        padding: 35px 15px 55px;
    }

    .login-card {
        max-width: 500px;

        padding: 34px 24px;

        border-radius: 21px;
    }

    .login-top {
        margin-bottom: 30px;
    }

    .login-top h2 {
        font-size: 27px;
    }

    .login-top p {
        font-size: 13px;
    }

    .auth-input {
        margin-bottom: 21px;
    }

    .auth-input label {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .auth-input input {
        height: 56px;

        padding-right: 50px;
        padding-left: 50px;

        border-radius: 14px;

        font-size: 14px;
        line-height: 56px;
    }

    .auth-input > i {
        right: 17px;
        top: 48px;

        width: 20px;
        height: 20px;

        font-size: 20px;
    }

    .toggle-password {
        left: 17px;
        top: 47px;

        width: 22px;
        height: 22px;
    }

    .toggle-password i {
        font-size: 19px;
    }

    .login-options {
        font-size: 12px;
        margin-bottom: 23px;
    }

    .btn-login {
        height: 56px;

        border-radius: 14px;

        font-size: 15px;
    }

    .login-footer {
        margin-top: 22px;
        font-size: 13px;
    }

    .auth-alert {
        font-size: 12px;
        padding: 12px 13px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .auth-section {
        padding: 24px 11px 45px;
    }

    .login-card {
        padding: 29px 17px;

        border-radius: 18px;
    }

    .login-top {
        margin-bottom: 27px;
    }

    .login-top h2 {
        font-size: 24px;
    }

    .login-top p {
        font-size: 12px;
    }

    .auth-input label {
        font-size: 12px;
    }

    .auth-input input {
        height: 54px;

        padding-right: 46px;
        padding-left: 46px;

        border-radius: 13px;

        font-size: 13px;
        line-height: 54px;
    }

    .auth-input > i {
        right: 15px;
        top: 46px;

        width: 19px;
        height: 19px;

        font-size: 19px;
    }

    .toggle-password {
        left: 15px;
        top: 45px;

        width: 21px;
        height: 21px;
    }

    .toggle-password i {
        font-size: 18px;
    }

    .login-options {
        font-size: 11px;
    }

    .btn-login {
        height: 54px;

        border-radius: 13px;

        font-size: 14px;
    }

    .login-footer {
        font-size: 12px;
    }
}


/* =========================================================
   VERY SMALL
========================================================= */

@media (max-width: 360px) {

    .auth-section {
        padding-right: 8px;
        padding-left: 8px;
    }

    .login-card {
        padding: 26px 14px;
    }

    .login-top h2 {
        font-size: 22px;
    }

    .auth-input input {
        height: 52px;

        padding-right: 43px;
        padding-left: 43px;

        line-height: 52px;
    }

    .auth-input > i {
        right: 13px;
        top: 44px;

        width: 18px;
        height: 18px;

        font-size: 18px;
    }

    .toggle-password {
        left: 13px;
        top: 43px;
    }

    .btn-login {
        height: 52px;
        font-size: 13px;
    }
}


/* =========================================================
   TOUCH
========================================================= */

@media (hover: none) {

    .btn-login:hover {
        transform: none;

        box-shadow:
            0 13px 30px rgba(11,16,245,.19);
    }

    .btn-login:hover::before {
        left: -130%;
    }

    .auth-input input:hover {
        background: #f8faff;
        border-color: #dce2ec;
    }

    .toggle-password:hover {
        transform: none;
    }
}


























/* =========================================================
   AUTH ERROR ALERT — CLEAN VERSION
   ========================================================= */

.auth-alert {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 0 0 28px;
    padding: 14px 16px;

    border: 1px solid rgba(241, 20, 20, 0.22);
    border-radius: 14px;

    background: rgba(241, 20, 20, 0.055);
    color: #F11414;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;

    box-sizing: border-box;
}

.auth-alert::before {
    content: "\ea16";
    font-family: "remixicon";
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(241, 20, 20, 0.10);

    font-size: 19px;
}

.auth-alert ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth-alert li {
    margin: 0;
}

.auth-alert li + li {
    margin-top: 3px;
}


