* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    direction: rtl;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    background: #f5f6f7;
    color: #111;
    overflow-x: hidden;
}

.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
    background: url("../images/loginback.png") center center / cover no-repeat;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: #ebeaea;
    padding: 30px;
    position: relative;
    border-radius: 35px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .12);
}

.title {
    margin: 0;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
}

.separator {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 30px 0 28px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

    .separator::before,
    .separator::after {
        content: "";
        height: 1px;
        background: #d8d8d8;
        flex: 1;
    }

.field {
    width: 100%;
    margin-bottom: 17px;
}

    .field label,
    .captcha-label {
        display: block;
        text-align: right;
        color: #00356b;
        font-weight: 700;
        font-size: 15px;
        margin-bottom: 8px;
    }

    .field input {
        width: 100%;
        height: 48px;
        border: 1px solid #d8d8d8;
        border-radius: 5px;
        padding: 0 15px;
        font-size: 16px;
        font-family: inherit;
        outline: none;
        direction: rtl;
        background: #fff;
    }

        .field input:focus,
        .captcha-input:focus {
            border-color: #002060;
            box-shadow: 0 0 0 2px rgba(0, 32, 96, .08);
        }

/* CAPTCHA */
.captcha-field {
    margin-top: 5px;
}

.captcha-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 12px;
}

.captcha-image {
    display: block;
    width: 120px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #002060;
    border-radius: 5px;
    margin: 0;
    flex-shrink: 0;
}

.captcha-refresh {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 5px;
    background: #002060;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, transform .1s;
}

    .captcha-refresh:hover {
        background: #00143D;
    }

    .captcha-refresh:active {
        transform: scale(.96);
    }

.captcha-input {
    display: block;
    width: 120px;
    height: 40px;
    margin: 5px auto 10px;
    border: 1px solid #002060;
    border-radius: 5px;
    padding: 0 8px;
    text-align: center;
    font-size: 20px;
    letter-spacing: 4px;
    outline: none;
    font-family: inherit;
}

/* Button */
.login-button {
    display: block;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 5px;
    margin: 20px 0 0;
    background: radial-gradient(circle, rgba(238, 195, 174, 1) 0%, rgba(126, 128, 130, .93) 0%);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    box-shadow: 0 6px 10px rgba(0, 0, 0, .18);
    transition: filter .2s, transform .1s;
}

    .login-button:hover {
        filter: brightness(.96);
    }

    .login-button:active {
        transform: translateY(1px);
    }

    .login-button .arrow {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        direction: ltr;
        font-size: 26px;
        line-height: 1;
        font-weight: 400;
    }

.validation {
    display: block;
    color: #d00000;
    font-size: 12px;
    margin-top: 5px;
    min-height: 16px;
}

/* Tablet */
@media (min-width: 577px) and (max-width: 992px) {
    .login-page {
        padding: 25px 20px;
    }

    .login-card {
        max-width: 450px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .login-page {
        min-height: 100vh;
        padding: 15px 10px;
        align-items: center;
        background: #f5f6f7;
    }

    .login-card {
        width: 100%;
        max-width: 450px;
        min-height: auto;
        padding: 25px 20px 30px;
        border-radius: 25px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, .10);
    }

    .title {
        font-size: 21px;
    }

    .separator {
        gap: 10px;
        margin: 25px 0;
        font-size: 14px;
    }

    .field input {
        height: 46px;
        font-size: 15px;
    }

    .captcha-container {
        gap: 8px;
    }

    .captcha-image {
        width: 110px;
        height: 55px;
    }

    .captcha-refresh {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .captcha-input {
        width: 110px;
        height: 40px;
        font-size: 19px;
    }

    .login-button {
        height: 48px;
        margin-top: 15px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .login-page {
        padding: 10px 8px;
    }

    .login-card {
        padding: 20px 15px 25px;
        border-radius: 20px;
    }

    .title {
        font-size: 19px;
    }

    .captcha-image {
        width: 100px;
        height: 50px;
    }

    .captcha-refresh {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .captcha-input {
        width: 100px;
    }
}
