/* ========================================
   LOCAL FONTS
======================================== */

@font-face {

    font-family: "Cinzel";

    src:
        url("../assets/fonts/Cinzel-Regular.ttf")
        format("truetype");

    font-weight: 400;

    font-style: normal;

    font-display: swap;

}


@font-face {

    font-family: "Cinzel";

    src:
        url("../assets/fonts/Cinzel-Medium.ttf")
        format("truetype");

    font-weight: 500;

    font-style: normal;

    font-display: swap;

}


@font-face {

    font-family: "Vazirmatn";

    src:
        url("../assets/fonts/Vazirmatn-Light.ttf")
        format("truetype");

    font-weight: 300;

    font-style: normal;

    font-display: swap;

}


@font-face {

    font-family: "Vazirmatn";

    src:
        url("../assets/fonts/Vazirmatn-Regular.ttf")
        format("truetype");

    font-weight: 400;

    font-style: normal;

    font-display: swap;

}

html,
body {

    margin: 0;

    padding: 0;

    width: 100%;

    min-height: 100%;

}


* {

    box-sizing: border-box;

}


body {

    background: #080808;

    color: #fff;

}


/* ========================================
   PAGE
======================================== */

.login-page {

    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 50% 45%,
            rgba(100, 8, 25, 0.16),
            transparent 30rem
        ),

        radial-gradient(
            circle at 10% 90%,
            rgba(75, 5, 20, 0.12),
            transparent 25rem
        ),

        #080808;

}



/* ========================================
   HEADER
======================================== */

.login-header {

    position: relative;

    width: 100%;

    min-height: 5rem;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 5vw;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.07);

    z-index: 5;

}


.login-logo {

    font-family:
        "Cinzel",
        serif;

    font-size: 1rem;

    font-weight: 500;

    letter-spacing: 0.3rem;

    color: #fff;

    text-decoration: none;

    transition:
        opacity 0.3s ease;
}


.login-logo:hover {

    opacity: 0.7;

}


.login-back {

    position: absolute;

    right: 5vw;

    display: flex;

    align-items: center;

    gap: 0.6rem;

    font-family:
        "Vazirmatn",
        sans-serif;

    font-size: 0.62rem;

    font-weight: 300;

    color:
        rgba(255, 255, 255, 0.45);

    text-decoration: none;

    transition:
        color 0.3s ease;
}


.login-back:hover {

    color: #fff;

}


.login-back i {

    transition:
        transform 0.3s ease;
}


.login-back:hover i {

    transform:
        translateX(0.2rem);
}


.login-header-label {

    position: absolute;

    left: 5vw;

    font-family:
        "Cinzel",
        serif;

    font-size: 0.48rem;

    letter-spacing: 0.2rem;

    color:
        rgba(255, 255, 255, 0.25);
}



/* ========================================
   BACKGROUND GLOWS
======================================== */

.login-glow {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(2rem);

    opacity: 0.45;

}


.login-glow-one {

    width: 18rem;

    height: 18rem;

    top: 25%;

    right: -8rem;

    background:
        rgba(120, 10, 30, 0.16);

}


.login-glow-two {

    width: 14rem;

    height: 14rem;

    bottom: -5rem;

    left: -5rem;

    background:
        rgba(100, 8, 25, 0.12);

}



/* ========================================
   CONTENT
======================================== */

.login-content {

    position: relative;

    width: min(
        28rem,
        90%
    );

    margin: 0 auto;

    padding:
        3.5rem 0 2.5rem;

    text-align: center;

    z-index: 2;
}



/* ========================================
   CHAPTER
======================================== */

.login-chapter {

    display: block;

    margin-bottom: 0.9rem;

    font-family:
        "Cinzel",
        serif;

    font-size: 0.48rem;

    letter-spacing: 0.28rem;

    color:
        rgba(255, 255, 255, 0.3);
}



/* ========================================
   TITLE
======================================== */

.login-content h1 {

    margin: 0;

    font-family:
        "Vazirmatn",
        sans-serif;

    font-size: 2rem;

    font-weight: 300;

    line-height: 1.7;

    color: #fff;
}


.login-description {

    margin:
        0.6rem 0 2rem;

    font-family:
        "Vazirmatn",
        sans-serif;

    font-size: 0.62rem;

    font-weight: 300;

    color:
        rgba(255, 255, 255, 0.35);
}



/* ========================================
   LOGIN CARD
======================================== */

.login-card {

    width: 100%;

    padding:
        2rem;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    border-radius: 0.35rem;

    background:
        rgba(255, 255, 255, 0.025);

    box-shadow:
        0 1.5rem 4rem
        rgba(0, 0, 0, 0.3);

    text-align: right;

}



/* ========================================
   CARD HEADING
======================================== */

.login-card-heading {

    padding-bottom: 1.2rem;

    margin-bottom: 1.5rem;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.07);
}


.login-card-heading span {

    display: block;

    margin-bottom: 0.45rem;

    font-family:
        "Cinzel",
        serif;

    font-size: 0.43rem;

    letter-spacing: 0.2rem;

    color:
        rgba(255, 255, 255, 0.28);
}


.login-card-heading h2 {

    margin: 0;

    font-family:
        "Vazirmatn",
        sans-serif;

    font-size: 0.95rem;

    font-weight: 400;

    color: #fff;
}



/* ========================================
   FORM
======================================== */

.login-form {

    display: flex;

    flex-direction: column;

    gap: 1.2rem;
}


.form-group {

    width: 100%;
}


.form-group label {

    display: block;

    margin-bottom: 0.5rem;

    font-family:
        "Vazirmatn",
        sans-serif;

    font-size: 0.8rem;

    font-weight: 400;

    color:
        rgba(255, 255, 255, 0.55);
}



/* ========================================
   INPUT
======================================== */

.input-wrapper {

    position: relative;

    width: 100%;
}


.input-wrapper > i {

    position: absolute;

    top: 50%;

    right: 1rem;

    transform:
        translateY(-50%);

    font-size: 0.75rem;

    color:
        rgba(255, 255, 255, 0.28);

    pointer-events: none;
}


.input-wrapper input {

    width: 100%;

    height: 3.1rem;

    padding:
        0 2.8rem 0 1rem;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 0.2rem;

    outline: none;

    background:
        rgba(0, 0, 0, 0.22);

    color: #fff;

    font-family:
        "Vazirmatn",
        sans-serif;

    font-size: 0.6rem;

    direction: rtl;

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


.input-wrapper input::placeholder {

    color:
        rgba(255, 255, 255, 0.22);
}


.input-wrapper input:focus {

    border-color:
        rgba(170, 25, 45, 0.65);

    background:
        rgba(100, 8, 25, 0.07);

    box-shadow:
        0 0 0 0.15rem
        rgba(150, 15, 35, 0.08);
}



/* ========================================
   PASSWORD TOGGLE
======================================== */

.password-toggle {

    position: absolute;

    left: 0.7rem;

    top: 50%;

    transform:
        translateY(-50%);

    width: 2rem;

    height: 2rem;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    background: transparent;

    color:
        rgba(255, 255, 255, 0.28);

    cursor: pointer;

    transition:
        color 0.3s ease;
}


.password-toggle:hover {

    color: #fff;

}



/* ========================================
   OPTIONS
======================================== */

.login-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

}


.remember-me {

    display: flex;

    align-items: center;

    gap: 0.45rem;

    cursor: pointer;

    font-family:
        "Vazirmatn",
        sans-serif;

    font-size: 0.52rem;

    color:
        rgba(255, 255, 255, 0.38);
}


.remember-me input {

    appearance: none;

    width: 0.8rem;

    height: 0.8rem;

    margin: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.2);

    border-radius: 0.12rem;

    background: transparent;

    cursor: pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}


.remember-me input:checked {

    border-color:
        #a71934;

    background:
        #a71934;
}


.forgot-password {

    font-family:
        "Vazirmatn",
        sans-serif;

    font-size: 0.5rem;

    color:
        rgba(255, 255, 255, 0.32);

    text-decoration: none;

    transition:
        color 0.3s ease;
}


.forgot-password:hover {

    color: #b51d3b;

}



/* ========================================
   LOGIN BUTTON
======================================== */

.login-submit {

    width: 100%;

    min-height: 3.2rem;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.8rem;

    margin-top: 0.2rem;

    border:
        1px solid
        rgba(170, 25, 45, 0.65);

    border-radius: 0.2rem;

    background:
        rgba(130, 10, 28, 0.28);

    color: #fff;

    font-family:
        "Vazirmatn",
        sans-serif;

    font-size: 0.62rem;

    cursor: pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.login-submit:hover {

    background:
        rgba(160, 15, 38, 0.55);

    border-color:
        rgba(200, 35, 60, 0.85);

    transform:
        translateY(-0.12rem);

    box-shadow:
        0 0.7rem 2rem
        rgba(110, 8, 25, 0.18);
}


.login-submit i {

    transition:
        transform 0.3s ease;
}


.login-submit:hover i {

    transform:
        translateX(-0.2rem);
}



/* ========================================
   REGISTER
======================================== */

.login-register {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.35rem;

    margin-top: 1.5rem;

    padding-top: 1.3rem;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.06);

    font-family:
        "Vazirmatn",
        sans-serif;

    font-size: 0.52rem;

    color:
        rgba(255, 255, 255, 0.3);
}


.login-register a {

    color:
        rgba(255, 255, 255, 0.7);

    text-decoration: none;

    transition:
        color 0.3s ease;
}


.login-register a:hover {

    color:
        #b51d3b;
}



/* ========================================
   BOTTOM NOTE
======================================== */

.login-note {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 0.7rem;

    margin-top: 2rem;

    font-family:
        "Cinzel",
        serif;

    font-size: 0.4rem;

    letter-spacing: 0.12rem;

    color:
        rgba(255, 255, 255, 0.2);
}


.login-note span {

    color:
        rgba(165, 20, 40, 0.7);
}


/* ========================================
   LOGIN MESSAGE
======================================== */

.login-message {

    display: none;

    width: 100%;

    padding:
        0.75rem 0.9rem;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 0.2rem;

    font-family:
        "Vazirmatn",
        sans-serif;

    font-size: 0.55rem;

    font-weight: 300;

    line-height: 1.8;

    text-align: center;

}


/* ERROR */

.login-message.error {

    display: block;

    color:
        #e5a1ad;

    border-color:
        rgba(170, 25, 45, 0.35);

    background:
        rgba(130, 10, 28, 0.08);

}


/* SUCCESS */

.login-message.success {

    display: block;

    color:
        #b8d8c2;

    border-color:
        rgba(100, 160, 120, 0.25);

    background:
        rgba(70, 120, 85, 0.07);

}


/* ========================================
   LOADING
======================================== */

.login-submit:disabled {

    cursor:
        not-allowed;

    opacity:
        0.65;

}


.login-submit.loading i {

    animation:
        login-spin 0.8s linear infinite;

}


@keyframes login-spin {

    from {

        transform:
            rotate(0deg);

    }

    to {

        transform:
            rotate(360deg);

    }

}