@import url("./basic.css");
@import url("./typography.css");
@import url("./input-field.css");
@import url("./alert.css");
@import url("./modal.css");
@import url("./arabic.css");

*,
*::after,
*::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    height: 100vh;
    font-family: "Hacen Liner Screen", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Addington CF", Arial, sans-serif;
    font-weight: 200;
}

h1 {
    font-size: 1.5rem;
}

img {
    max-width: 100%;
    object-fit: cover;
}

.login-container {
    max-width: 400px;
    margin: auto;
    padding-top: 50px;
}

.mazaya-logo {
    position: relative;
    width: 100%;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    margin-top: -2rem;
}

.mazaya-logo > img {
    object-fit: contain;
}

.mazaya-logo::after {
    content: "";
    position: absolute;
    display: block;
    bottom: 2rem;
    width: 90%;
    height: 1px;
    background-color: #000;
}

.hyper-link {
    color: var(--app-system-black);
    text-underline-offset: 6px;
}

.divider {
    width: 100%;
    height: 3px;
    background-color: var(--app-gray-50);
}

.signup-form small {
    color: #606060;
    font-size: 13.75px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 145.455% */
}

.signup-form p {
    color: #606060;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 25px; /* 166.667% */
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
    display: flex;
    flex-flow: column;
    gap: 0.3rem;
    justify-content: center;
}

.form-group-otp {
    flex-direction: row;
    justify-content: space-evenly;
}

.form-group > label {
    color: #8a8a8a;
    font-size: 13.75px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 145.455% */
    letter-spacing: 0.825px;
    text-transform: capitalize;
}

[dir="rtl"] .otp-container {
    flex-flow: row-reverse;
}

[dir="rtl"] .otp-phone > span {
    direction: ltr;
    unicode-bidi: embed;
}

.otp {
    width: 4.5rem;
    height: 4.5rem;
    padding: 1rem;
    text-align: center;
    caret-color: transparent;
    font-size: 1.75rem;
    font-weight: 600;
    -moz-appearance: textfield;
}
.otp::-webkit-inner-spin-button,
.otp::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.form-control {
    display: flex;
    padding: 16px;
    width: 80%;
    align-items: center;
    align-self: stretch;
    border-radius: 15px;
    background: #f3f3f3;
    border: none;
}

.app-button {
    border-radius: 13px;
    border: 1px solid var(--app-system-black);
    background: var(--app-system-black);
    color: #fff;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 1rem;
    padding-block: 0.4rem;
}

.app-button-danger {
    background-color: var(--app-red-200);
    border-color: var(--app-red-200);
}

.app-button-invert {
    color: var(--app-system-black);
    background-color: #fff;
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    border-top: 4px solid black;
    border-right: 4px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.loader::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border-bottom: 4px solid var(--app-green-100);
    border-left: 4px solid transparent;
}

.shown {
    display: block;
}

.hidden {
    display: none;
}

.icon-wrapper {
    background-color: white;
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    border-radius: 50%;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media screen and (min-width: 768px) {
    .main-container {
        width: 500px;
        margin-inline: auto;
    }

    .mazaya-logo::after {
        width: 100%;
    }
}
