/* =========================================================
   Phone Login
   ========================================================= */

.phone-login {
    direction: rtl;
    width: 100%;
    max-width: 430px;
    margin: 40px auto;
    padding: 34px 30px;
    box-sizing: border-box;

    background: #ffffff;
    border: 1px solid #e8e8ef;
    border-radius: 22px;

    box-shadow:
        0 20px 50px rgba(20, 20, 40, 0.08),
        0 4px 14px rgba(20, 20, 40, 0.04);

    font-family:
        Tahoma,
        Arial,
        sans-serif;

    color: #202124;
}


/* =========================================================
   Steps
   ========================================================= */

.phone-login-step {
    width: 100%;
}

.phone-login-otp-step {
    animation: phoneLoginFadeIn 0.3s ease;
}


/* =========================================================
   Heading
   ========================================================= */

.phone-login h3 {
    margin: 0 0 10px;
    padding: 0;

    font-size: 24px;
    line-height: 1.5;
    font-weight: 700;

    color: #17171c;
    text-align: center;
}

.phone-login p {
    margin: 0 0 25px;

    color: #73737d;
    font-size: 14px;
    line-height: 1.9;

    text-align: center;
}


/* =========================================================
   Field
   ========================================================= */

.phone-login-field {
    margin-bottom: 18px;
}

.phone-login-field label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 600;

    color: #363640;
}


/* =========================================================
   Inputs
   ========================================================= */

.phone-login input {
    width: 100%;
    height: 52px;

    box-sizing: border-box;

    padding: 0 15px;

    border: 1px solid #dcdce5;
    border-radius: 12px;

    background: #fafafd;

    color: #222229;

    font-size: 16px;
    font-family: inherit;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.phone-login input::placeholder {
    color: #aaaab4;
}

.phone-login input:hover {
    border-color: #c9c9d5;
}

.phone-login input:focus {
    background: #ffffff;

    border-color: #5b5ce2;

    box-shadow:
        0 0 0 4px rgba(91, 92, 226, 0.10);
}


/* =========================================================
   OTP Input
   ========================================================= */

#phone-login-otp {
    direction: ltr;

    text-align: center;

    letter-spacing: 8px;

    font-size: 24px;
    font-weight: 700;

    padding-left: 20px;
}

#phone-login-otp::placeholder {
    letter-spacing: normal;
    font-size: 16px;
    font-weight: 400;
}


/* =========================================================
   Main Button
   ========================================================= */

.phone-login button {
    width: 100%;
    min-height: 50px;

    border: 0;
    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #5b5ce2,
        #7547d9
    );

    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.phone-login button:hover:not(:disabled) {
    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(91, 92, 226, 0.25);
}

.phone-login button:active:not(:disabled) {
    transform: translateY(0);
}

.phone-login button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}


/* =========================================================
   OTP Buttons
   ========================================================= */

#phone-login-verify-otp {
    margin-bottom: 10px;
}


/* Resend Button */

#phone-login-resend {
    min-height: 46px;

    background: #f2f2f8;

    color: #55556a;

    font-size: 14px;

    box-shadow: none;
}

#phone-login-resend:hover:not(:disabled) {
    background: #e9e9f3;

    color: #4d4dc9;

    box-shadow: none;
}

#phone-login-resend:disabled {
    opacity: 0.55;
}


/* Change Mobile Button */

#phone-login-change-mobile {
    margin-top: 8px;

    min-height: auto;

    background: transparent;

    color: #5b5ce2;

    font-size: 13px;
    font-weight: 600;

    box-shadow: none;
}

#phone-login-change-mobile:hover {
    background: transparent;

    color: #4546c4;

    box-shadow: none;

    transform: none;
}


/* =========================================================
   Messages
   ========================================================= */

.phone-login-message {
    min-height: 24px;

    margin-top: 14px;

    padding: 0;

    font-size: 13px;
    line-height: 1.8;

    text-align: center;
}

.phone-login-message:empty {
    min-height: 0;
    margin-top: 0;
}

.phone-login-message.success {
    color: #16834b;
}

.phone-login-message.error {
    color: #d9363e;
}


/* =========================================================
   Countdown
   ========================================================= */

.phone-login-countdown {
    margin-top: 12px;

    color: #858591;

    font-size: 13px;

    text-align: center;
}


/* =========================================================
   Already Logged In
   ========================================================= */

.phone-login-already-logged-in {
    direction: rtl;

    max-width: 430px;

    margin: 40px auto;
    padding: 18px 20px;

    box-sizing: border-box;

    background: #f1faf5;

    border: 1px solid #ccebd9;
    border-radius: 12px;

    color: #167447;

    font-size: 14px;
    text-align: center;
}


/* =========================================================
   Loading
   ========================================================= */

.phone-login button:disabled {
    transition: opacity 0.2s ease;
}


/* =========================================================
   Animation
   ========================================================= */

@keyframes phoneLoginFadeIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

    .phone-login {
        max-width: 100%;

        margin: 20px 12px;
        padding: 26px 20px;

        border-radius: 18px;
    }

    .phone-login h3 {
        font-size: 21px;
    }

    .phone-login p {
        font-size: 13px;
    }

    .phone-login input {
        height: 50px;
    }

    #phone-login-otp {
        font-size: 22px;
        letter-spacing: 6px;
    }
}


/* =========================================================
   Very Small Screens
   ========================================================= */

@media (max-width: 360px) {

    .phone-login {
        margin: 15px 8px;
        padding: 22px 16px;
    }

    .phone-login h3 {
        font-size: 20px;
    }

    #phone-login-otp {
        letter-spacing: 4px;
        font-size: 20px;
    }
}