/* =========================================================
   EKOR — REGISTER PAGE
   صفحه ثبت نام | آموزشگاه زبان ایکور
   Brand:
   Blue  #0B10F5
   Red   #F11414
   Navy  #0B0F2E
========================================================= */


/* =========================================================
   AUTH SECTION
========================================================= */

.auth-section {
    width: 100%;
    min-height: calc(100vh - 90px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 65px 20px 85px;

    background:
        radial-gradient(
            circle at 88% 8%,
            rgba(11, 16, 245, .07),
            transparent 32%
        ),
        radial-gradient(
            circle at 8% 92%,
            rgba(241, 20, 20, .045),
            transparent 30%
        ),
        #f7f9fc;
}


/* =========================================================
   REGISTER CARD
========================================================= */

.login-card {
    position: relative;

    width: 100%;
    max-width: 620px;

    margin: 0 auto;
    padding: 48px 52px;

    background: #ffffff;

    border: 1px solid #e7eaf1;
    border-radius: 26px;

    box-shadow:
        0 25px 75px rgba(11, 15, 46, .09);

    animation: registerFade .65s ease both;
}


/* =========================================================
   TOP / TITLE
========================================================= */

.login-top {
    width: 100%;

    text-align: center;

    margin-bottom: 34px;
}

.login-top h2 {
    margin: 0 0 9px;

    color: #0B0F2E;

    font-size: 34px;
    line-height: 1.5;
    font-weight: 800;
}

.login-top p {
    max-width: 440px;

    margin: 0 auto;

    color: #7a8292;

    font-size: 14px;
    line-height: 1.9;
}


/* =========================================================
   FORM
========================================================= */

.login-card form {
    width: 100%;
    margin: 0;
}


/* =========================================================
   FORM GROUP
========================================================= */

.auth-input {
    position: relative;

    width: 100%;

    margin-bottom: 20px;
}

.auth-input label {
    display: block;

    width: 100%;

    margin: 0 0 8px;

    color: #0B0F2E;

    font-size: 14px;
    line-height: 1.8;
    font-weight: 700;
}


/* =========================================================
   TEXT / NUMBER / PASSWORD INPUT
========================================================= */

.auth-input input {
    display: block;

    width: 100%;
    height: 59px;

    margin: 0;

    padding: 0 55px;

    border: 1px solid #dce2ec;
    border-radius: 15px;

    outline: none;

    background: #f8faff;
    color: #111827;

    font-family: inherit;
    font-size: 15px;
    line-height: 59px;

    transition:
        border-color .25s ease,
        background-color .25s ease,
        box-shadow .25s ease;
}

.auth-input input:hover {
    background: #ffffff;

    border-color: #cbd3df;
}

.auth-input input:focus {
    background: #ffffff;

    border-color: #0B10F5;

    box-shadow:
        0 0 0 4px rgba(11, 16, 245, .09);
}

.auth-input input::placeholder {
    color: #a0a8b7;
    opacity: 1;
}


/* =========================================================
   NORMAL INPUT ICONS
   نام / موبایل / شهر / سن
========================================================= */

.auth-input > i:not(.input-icon) {
    position: absolute;

    right: 19px;
    left: auto;

    top: 53px;

    z-index: 3;

    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;

    transform: translateY(-50%);

    transition: color .25s ease;
}

.auth-input:focus-within > i:not(.input-icon) {
    color: #0B10F5;
}


/* =========================================================
   PASSWORD LOCK ICON
   قفل باید سمت راست باشد
========================================================= */

.auth-input > i.input-icon {
    position: absolute;

    right: 19px;
    left: auto;

    top: 53px;

    z-index: 3;

    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;

    transform: translateY(-50%);

    transition: color .25s ease;
}

.auth-input:focus-within > i.input-icon {
    color: #0B10F5;
}


/* =========================================================
   PASSWORD EYE
   چشم باید سمت چپ باشد
========================================================= */

.auth-input .toggle-password {
    position: absolute;

    left: 19px;
    right: auto;

    top: 53px;

    z-index: 5;

    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    color: #929cad;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        color .2s ease,
        transform .2s ease;
}

.auth-input .toggle-password i {
    display: block;

    margin: 0;

    font-size: 20px;
    line-height: 1;
}

.auth-input .toggle-password:hover {
    color: #0B10F5;

    transform:
        translateY(-50%)
        scale(1.05);
}


/* =========================================================
   PASSWORD INPUT SPACING
========================================================= */

.auth-input input#password,
.auth-input input#password_confirmation {
    padding-right: 55px;
    padding-left: 55px;
}


/* =========================================================
   SELECT
========================================================= */

.select-box {
    position: relative;
}

.auth-input select {
    display: block;

    width: 100%;
    height: 59px;

    margin: 0;

    padding: 0 20px 0 54px;

    border: 1px solid #dce2ec;
    border-radius: 15px;

    outline: none;

    background: #f8faff;
    color: #111827;

    font-family: inherit;
    font-size: 15px;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    transition:
        border-color .25s ease,
        background-color .25s ease,
        box-shadow .25s ease;
}

.auth-input select:hover {
    background: #ffffff;

    border-color: #cbd3df;
}

.auth-input select:focus {
    background: #ffffff;

    border-color: #0B10F5;

    box-shadow:
        0 0 0 4px rgba(11, 16, 245, .09);
}


/* =========================================================
   SELECT ARROW
========================================================= */

.select-box::after {
    content: "\ea4e";

    position: absolute;

    left: 19px;
    top: 53px;

    z-index: 4;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #929cad;

    font-family: "remixicon";
    font-size: 18px;
    line-height: 1;

    pointer-events: none;

    transform: translateY(-50%);
}


/* =========================================================
   GENERAL 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;
}


/* =========================================================
   SERVER VALIDATION
========================================================= */

.input-error {
    display: block;

    margin-top: 6px;

    color: #F11414;

    font-size: 12px;
    line-height: 1.7;
    font-weight: 600;
}


/* =========================================================
   LIVE VALIDATION
========================================================= */

.live-error {
    display: block;

    min-height: 18px;

    margin-top: 6px;

    font-size: 12px;
    line-height: 1.7;
    font-weight: 600;
}

.live-error.success {
    color: #16a34a;
}

.live-error.error {
    color: #F11414;
}


/* =========================================================
   INVALID INPUT
========================================================= */

.auth-input input.is-invalid,
.auth-input select.is-invalid {
    border-color: #F11414 !important;

    background: #fff8f8 !important;

    box-shadow:
        0 0 0 3px rgba(241, 20, 20, .06) !important;

    animation: registerShake .35s ease;
}


/* =========================================================
   PASSWORD STRENGTH
========================================================= */

.password-strength {
    width: 100%;

    margin-top: 9px;
}

.strength-bar {
    width: 100%;
    height: 7px;

    margin-bottom: 7px;

    background: #edf1f6;

    border-radius: 20px;

    overflow: hidden;
}

.strength-bar span {
    display: block;

    width: 0;
    height: 100%;

    border-radius: inherit;

    transition:
        width .35s ease,
        background-color .35s ease;
}

#strengthText {
    color: #64748b;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   PASSWORD MATCH
========================================================= */

.password-match {
    width: 100%;

    margin-top: 7px;
}

.password-match small {
    font-size: 12px;
    font-weight: 600;
}

.password-match .success {
    color: #16a34a;
}

.password-match .error {
    color: #F11414;
}


/* =========================================================
   REGISTER BUTTON
========================================================= */

.btn-login {
    position: relative;

    width: 100%;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 5px;

    padding: 0 25px;

    border: none;
    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #0B10F5 0%,
            #1820ff 100%
        );

    color: #ffffff;

    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;
}


/* Shine */

.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: #ffffff;

    border-radius: 50%;

    transform: translate(-50%, -50%);

    animation: registerSpin .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;

    transition: color .2s ease;
}

.login-footer a:hover {
    color: #070bb8;
}


/* =========================================================
   SUCCESS TOAST
========================================================= */

.toast-success {
    position: fixed;

    top: 24px;
    left: 50%;

    z-index: 99999;

    width: max-content;
    max-width: calc(100% - 30px);

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 13px 20px;

    border-radius: 13px;

    background: #16a34a;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;

    transform: translateX(-50%);

    box-shadow:
        0 16px 40px rgba(22, 163, 74, .22);

    animation: registerToast .45s ease;
}

.toast-success i {
    flex: 0 0 auto;

    font-size: 20px;
}


/* =========================================================
   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;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes registerFade {

    from {
        opacity: 0;

        transform:
            translateY(25px)
            scale(.985);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


@keyframes registerShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-3px);
    }
}


@keyframes registerSpin {

    to {
        transform:
            translate(-50%, -50%)
            rotate(360deg);
    }
}


@keyframes registerToast {

    from {
        opacity: 0;

        transform:
            translate(-50%, -20px);
    }

    to {
        opacity: 1;

        transform:
            translate(-50%, 0);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .auth-section {
        min-height: calc(100vh - 75px);

        padding: 50px 20px 65px;
    }

    .login-card {
        max-width: 570px;

        padding: 42px 40px;
    }

    .login-top h2 {
        font-size: 31px;
    }

    .auth-input > i:not(.input-icon),
    .auth-input > i.input-icon {
        top: 53px;
    }

    .auth-input .toggle-password {
        top: 53px;
    }

    .select-box::after {
        top: 53px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .auth-section {
        min-height: auto;

        align-items: flex-start;

        padding: 32px 15px 50px;
    }

    .login-card {
        max-width: 520px;

        padding: 34px 24px;

        border-radius: 21px;
    }

    .login-top {
        margin-bottom: 29px;
    }

    .login-top h2 {
        font-size: 27px;
    }

    .login-top p {
        font-size: 13px;
    }

    .auth-input {
        margin-bottom: 19px;
    }

    .auth-input label {
        margin-bottom: 7px;

        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 select {
        height: 56px;

        padding-right: 18px;
        padding-left: 50px;

        border-radius: 14px;

        font-size: 14px;
    }


    /* آیکون‌های راست */
    .auth-input > i:not(.input-icon),
    .auth-input > i.input-icon {
        right: 17px;
        left: auto;

        top: 50%;

        width: 20px;
        height: 20px;

        font-size: 20px;

        transform: translateY(14px);
    }


    /* چشم سمت چپ */
    .auth-input .toggle-password {
        left: 17px;
        right: auto;

        top: 50%;

        width: 22px;
        height: 22px;

        transform: translateY(14px);
    }

    .auth-input .toggle-password i {
        font-size: 19px;
    }


    /* فلش Select */
    .select-box::after {
        left: 17px;

        top: 50%;

        width: 19px;
        height: 19px;

        font-size: 17px;

        transform: translateY(14px);
    }


    .password-strength {
        margin-top: 8px;
    }

    .password-match {
        margin-top: 7px;
    }

    .btn-login {
        height: 56px;

        border-radius: 14px;

        font-size: 15px;
    }

    .login-footer {
        margin-top: 21px;

        font-size: 13px;
    }

    .auth-alert {
        padding: 12px 13px;

        font-size: 12px;
    }

    .toast-success {
        top: 15px;

        max-width: calc(100% - 24px);

        padding: 11px 14px;

        font-size: 12px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .auth-section {
        padding: 24px 11px 42px;
    }

    .login-card {
        padding: 29px 17px;

        border-radius: 18px;
    }

    .login-top {
        margin-bottom: 26px;
    }

    .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 select {
        height: 54px;

        padding-right: 16px;
        padding-left: 46px;

        border-radius: 13px;

        font-size: 13px;
    }


    /* آیکون راست */
    .auth-input > i:not(.input-icon),
    .auth-input > i.input-icon {
        right: 15px;

        width: 19px;
        height: 19px;

        font-size: 19px;

        transform: translateY(13px);
    }


    /* چشم چپ */
    .auth-input .toggle-password {
        left: 15px;

        width: 21px;
        height: 21px;

        transform: translateY(13px);
    }

    .auth-input .toggle-password i {
        font-size: 18px;
    }


    /* فلش */
    .select-box::after {
        left: 15px;

        width: 18px;
        height: 18px;

        font-size: 16px;

        transform: translateY(13px);
    }


    .input-error,
    .live-error {
        font-size: 11px;
    }

    .btn-login {
        height: 54px;

        border-radius: 13px;

        font-size: 14px;
    }

    .login-footer {
        font-size: 12px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@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 select {
        height: 52px;

        padding-right: 14px;
        padding-left: 43px;
    }


    .auth-input > i:not(.input-icon),
    .auth-input > i.input-icon {
        right: 13px;

        width: 18px;
        height: 18px;

        font-size: 18px;

        transform: translateY(12px);
    }


    .auth-input .toggle-password {
        left: 13px;

        width: 20px;
        height: 20px;

        transform: translateY(12px);
    }

    .auth-input .toggle-password i {
        font-size: 17px;
    }


    .select-box::after {
        left: 13px;

        width: 17px;
        height: 17px;

        font-size: 15px;

        transform: translateY(12px);
    }


    .btn-login {
        height: 52px;

        font-size: 13px;
    }
}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@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,
    .auth-input select:hover {
        background: #f8faff;

        border-color: #dce2ec;
    }

    .auth-input .toggle-password:hover {
        transform: translateY(14px);
    }
}



















/* =========================================================
   FINAL — REGISTER ICON CENTER
========================================================= */

/* آیکون‌های داخل فیلد */
.auth-input > i:not(.input-icon),
.auth-input > i.input-icon {
    position: absolute !important;

    top: 63px !important;
    right: 19px !important;
    left: auto !important;

    width: 22px !important;
    height: 22px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;

    font-size: 21px !important;
    line-height: 1 !important;

    transform: translateY(-50%) !important;

    pointer-events: none !important;

    color: #929cad !important;
}


/* چشم رمز */
.auth-input .toggle-password {
    position: absolute !important;

    top: 63px !important;
    left: 19px !important;
    right: auto !important;

    width: 24px !important;
    height: 24px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;

    transform: translateY(-50%) !important;

    z-index: 20 !important;

    color: #929cad !important;

    cursor: pointer !important;
}

.auth-input .toggle-password i {
    margin: 0 !important;

    font-size: 20px !important;
    line-height: 1 !important;
}


/* فلش Select */
.select-box::after {
    top: 63px !important;
    left: 19px !important;

    width: 20px !important;
    height: 20px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    transform: translateY(-50%) !important;

    margin: 0 !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .auth-input > i:not(.input-icon),
    .auth-input > i.input-icon {
        top: 58px !important;

        right: 17px !important;
        left: auto !important;

        width: 20px !important;
        height: 20px !important;

        font-size: 20px !important;

        transform: translateY(-50%) !important;
    }


    .auth-input .toggle-password {
        top: 58px !important;

        left: 17px !important;
        right: auto !important;

        width: 22px !important;
        height: 22px !important;

        transform: translateY(-50%) !important;
    }


    .auth-input .toggle-password i {
        font-size: 19px !important;
    }


    .select-box::after {
        top: 58px !important;

        left: 17px !important;

        width: 19px !important;
        height: 19px !important;

        font-size: 17px !important;

        transform: translateY(-50%) !important;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .auth-input > i:not(.input-icon),
    .auth-input > i.input-icon {
        top: 56px !important;

        right: 15px !important;

        width: 19px !important;
        height: 19px !important;

        font-size: 19px !important;
    }


    .auth-input .toggle-password {
        top: 56px !important;

        left: 15px !important;

        width: 21px !important;
        height: 21px !important;
    }


    .auth-input .toggle-password i {
        font-size: 18px !important;
    }


    .select-box::after {
        top: 56px !important;

        left: 15px !important;

        width: 18px !important;
        height: 18px !important;

        font-size: 16px !important;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .auth-input > i:not(.input-icon),
    .auth-input > i.input-icon {
        top: 54px !important;

        right: 13px !important;

        width: 18px !important;
        height: 18px !important;

        font-size: 18px !important;
    }


    .auth-input .toggle-password {
        top: 54px !important;

        left: 13px !important;

        width: 20px !important;
        height: 20px !important;
    }


    .auth-input .toggle-password i {
        font-size: 17px !important;
    }


    .select-box::after {
        top: 54px !important;

        left: 13px !important;

        width: 17px !important;
        height: 17px !important;

        font-size: 15px !important;
    }
}