﻿@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/Pro/Yekan\ Bakh\ Variable/webfonts/YekanBakhFaNum-VF.woff') format('woff-variations');
    font-weight: 100 1000;
    font-display: fallback;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'YekanBakh', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    direction: rtl;
}

.container {
    width: 100%;
    margin: auto;
    padding: 0 1.8rem;
}

button {
    border: none;
    cursor: pointer;
    background: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FFFFFF;
    background-image: url(../img/Mask\ group-1.svg);
    background-position: top right;
}

a {
    text-decoration: none;
}

input {
    border: none;
    outline: none;
}

.content {
    height: 100vh;
}

/* Header */

header {
    height: 25vh;
}

.header-content {
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 0.87rem;
    padding: 3rem 0;
}

.header-img {
    width: 5rem;
}

.header-txt {
    color: #48CFAD;
    font-size: 0.9rem;
    background-image: url(../img/Votify.svg);
    background-repeat: no-repeat;
    background-size: 7rem;
    background-position: center left;
}

.header-txt .title {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Main */

main {
    height: 75vh;
}

.cover {
    display: none;
}

main .container {
    padding: 1.5rem 1.8rem;
    max-width: 540px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.account-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.3rem;
    height: 100%;
}

.form-title {
    font-size: 1.8rem;
    color: #48CFAD;
    font-weight: 700;
}

.form-temp {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.inputs {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 75px;
}

.inputs > div {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.75rem;
}

input {
    height: 50px;
    width: 100%;
    border-radius: 1rem;
    border-bottom: 2px solid #DCE0DF;
    padding: 0.75rem 1rem;
    box-shadow: 0px 0px 3px 2px rgb(0 0 0 / 3%), 0px 2px 2px 0px #0000000D;
}

label {
    font-size: 0.87rem;
    color: #737373;
    padding-right: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    display: flex;
}

.visibility-toggler {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.error,
.empty-error {
    display: none;
    font-size: 0.7rem;
    align-self: flex-start;
    padding-right: 0.5rem;
    color: #FA3D6D;
}

.forgot-password {
    color: #48CFAD;
    font-size: 0.7rem;
    align-self: flex-start;
    padding-right: 0.5rem;
    cursor: pointer;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
    margin-top: auto;
}

.other-option {
    color: #48CFAD;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* Forget Password */

.mobile-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.3rem;
    height: 100%;
}

/* Captcha */

.captcha-wrapper {
    width: 100%;
    border-radius: 1rem;
    border-bottom: 2px solid #DCE0DF;
    box-shadow: 0px 0px 3px 2px rgb(0 0 0 / 3%), 0px 2px 2px 0px #0000000D;
}

.mobile-form input.captcha {
    border-radius: 0 1rem 1rem 0;
    border-bottom: unset;
    box-shadow: unset;
}

#img-captcha {
    border-radius: 1rem 0 0 1rem;
    width: 40%;
    aspect-ratio: 175 / 50;
}

/**/

.submit {
    background-color: #48CFAD;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 1rem;
    width: 100%;
    padding: 0.75rem;
    color: #E5FFF9;
}

.submit-loader {
    display: none;
    border: 3px solid #cfcfcf;
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s ease-out infinite;
    margin: 0 auto;
}

.submit-loader.active {
    display: unset;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    body {
        display: flex;
        justify-content: space-between;
    }

    .content {
        width: 100%;
    }

    header {
        display: flex;
        align-items: center;
        height: 25vh;
    }

    main {
        height: 75vh;
    }

    .cover {
        display: unset;
        height: 100vh;
    }

    .container {
        padding: 0 14% !important;
        max-width: unset !important;
    }

    main .container {
        padding: 0 5rem 14% !important;
        height: 100%;
        max-width: 600px !important;
    }

    .signup-form {
        height: 100%;
    }

    .buttons {
        margin-top: auto;
    }
}

@media (min-width: 1200px) {
    .header-img {
        width: 5rem;
    }

    .header-txt .title {
        font-size: 1.5rem;
    }

    .header-txt {
        font-size: 1rem;
    }
}
