/* =========================================================
   FONT
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');


/* =========================================================
   LARAL LOGIN
   GLASSMORPHISM LOGIN PAGE
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {

    --lrl-primary: #7c3aed;

    --lrl-primary-light: #8b5cf6;

    --lrl-secondary: #5467f3;

    --lrl-bg: #070b18;

    --lrl-white: #ffffff;

    --lrl-text: #ffffff;

    --lrl-muted:
        rgba(255, 255, 255, 0.62);

    --lrl-border:
        rgba(255, 255, 255, 0.13);

    --lrl-glass:
        rgba(255, 255, 255, 0.075);

    --lrl-input:
        rgba(255, 255, 255, 0.055);

}


/* =========================================================
   RESET
========================================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    font-family:
        'Vazirmatn',
        Tahoma,
        Arial,
        sans-serif;

}


html {

    width: 100%;

    height: 100%;

    overflow: hidden;

}


body {

    width: 100%;

    height: 100%;

    min-height: 100%;

    margin: 0;

    padding: 0;

    font-family:
        'Vazirmatn',
        Tahoma,
        Arial,
        sans-serif;

    background:

        radial-gradient(
            circle at top right,
            rgba(124, 58, 237, 0.13),
            transparent 35%
        ),

        radial-gradient(
            circle at bottom left,
            rgba(84, 103, 243, 0.10),
            transparent 35%
        ),

        var(--lrl-bg);

    color:
        var(--lrl-text);

    overflow: hidden;

}


/* =========================================================
   BACKGROUND
========================================================= */

.lrl-bg {

    position: fixed;

    inset: 0;

    width: 100%;

    height: 100%;

    overflow: hidden;

    z-index: -1;

    pointer-events: none;

}


/* Grid */

.lrl-bg::before {

    content: "";

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size:
        55px 55px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 85%
        );

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 85%
        );

}


/* =========================================================
   ORBS
========================================================= */

.lrl-orb {

    position: absolute;

    border-radius: 50%;

    filter:
        blur(80px);

    opacity: 0.5;

    transition:
        transform 1.2s ease-out;

}


.lrl-orb-1 {

    width: 330px;

    height: 330px;

    top: -100px;

    right: -80px;

    background:
        rgba(124, 58, 237, 0.32);

    animation:
        lrlFloat1 9s ease-in-out infinite;

}


.lrl-orb-2 {

    width: 300px;

    height: 300px;

    bottom: -100px;

    left: -80px;

    background:
        rgba(84, 103, 243, 0.25);

    animation:
        lrlFloat2 11s ease-in-out infinite;

}


.lrl-orb-3 {

    width: 180px;

    height: 180px;

    top: 45%;

    left: 50%;

    background:
        rgba(139, 92, 246, 0.12);

    animation:
        lrlFloat3 7s ease-in-out infinite;

}


/* =========================================================
   LOGIN WRAPPER
========================================================= */

.lrl-login-wrapper {

    position: fixed;

    inset: 0;

    width: 100%;

    height: 100dvh;

    min-height: 100dvh;

    display: flex;

    align-items: flex-start;

    justify-content: center;

    padding:
        5px 20px 90px;

    overflow: hidden;

}


/* =========================================================
   BACK BUTTON
========================================================= */

.lrl-back-btn {

    position: fixed;

    top: 25px;

    right: 25px;

    z-index: 200;

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        11px 18px;

    color: #fff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 500;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid
        rgba(255, 255, 255, 0.13);

    backdrop-filter:
        blur(16px);

    -webkit-backdrop-filter:
        blur(16px);

    border-radius: 14px;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.15);

    transition:
        all 0.3s ease;

}


.lrl-back-btn i {

    font-size: 12px;

}


.lrl-back-btn:hover {

    transform:
        translateX(4px);

    background:
        rgba(124, 58, 237, 0.18);

    border-color:
        rgba(124, 58, 237, 0.4);

}


/* =========================================================
   LOGIN CARD
========================================================= */

.lrl-login-card {

    position: relative;

    width: 100%;

    max-width: 455px;

    padding:
        38px 36px 30px;

    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.035)
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    box-shadow:

        0 35px 90px
        rgba(0, 0, 0, 0.40),

        inset 0 1px 0
        rgba(255, 255, 255, 0.08);

    backdrop-filter:
        blur(28px);

    -webkit-backdrop-filter:
        blur(28px);

    overflow: hidden;

    animation:
        lrlCardEnter 0.8s
        cubic-bezier(.2,.8,.2,1)
        both;

}


/* Top Glow */

.lrl-login-card::before {

    content: "";

    position: absolute;

    top: -100px;

    left: 50%;

    width: 260px;

    height: 180px;

    transform:
        translateX(-50%);

    background:
        rgba(124, 58, 237, 0.18);

    filter:
        blur(70px);

    pointer-events: none;

}


/* Shine */

.lrl-card-shine {

    position: absolute;

    width: 180px;

    height: 500px;

    top: -250px;

    right: -120px;

    transform:
        rotate(35deg);

    background:
        linear-gradient(
            transparent,
            rgba(255, 255, 255, 0.055),
            transparent
        );

    pointer-events: none;

}


/* =========================================================
   LOGO
========================================================= */

.lrl-logo-box {

    position: relative;

    width: 92px;

    height: 92px;

    margin:
        0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 25px;

    background:
        rgba(255, 255, 255, 0.07);

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.25);

    animation:
        lrlLogoFloat 4s
        ease-in-out
        infinite;

}


.lrl-login-logo {

    position: relative;

    z-index: 2;

    width: 68px;

    height: 68px;

    object-fit: contain;

}


.lrl-logo-glow {

    position: absolute;

    inset: 10px;

    background:
        rgba(124, 58, 237, 0.25);

    filter:
        blur(25px);

    border-radius: 50%;

}


/* =========================================================
   HEADER
========================================================= */

.lrl-login-header {

    text-align: center;

    margin-bottom: 30px;

}


.lrl-welcome {

    display: inline-block;

    margin-bottom: 8px;

    font-size: 13px;

    color:
        rgba(255, 255, 255, 0.65);

}


.lrl-login-header h1 {

    font-size: 23px;

    font-weight: 700;

    line-height: 1.8;

    margin-bottom: 5px;

}


.lrl-login-header p {

    font-size: 12.5px;

    color:
        var(--lrl-muted);

}


/* =========================================================
   FORM
========================================================= */

.lrl-login-form {

    display: flex;

    flex-direction: column;

    gap: 19px;

}


.lrl-input-group {display: flex;flex-direction: column;gap: 8px;margin-top: -10px;}


.lrl-input-group label {

    font-size: 12.5px;

    color:
        rgba(255, 255, 255, 0.76);

    font-weight: 500;

}


/* =========================================================
   INPUT
========================================================= */

.lrl-input-wrapper {

    position: relative;

    display: flex;

    align-items: center;

    width: 100%;

    height: 55px;

    border-radius: 15px;

    background:
        var(--lrl-input);

    border:
        1px solid
        var(--lrl-border);

    transition:
        all 0.3s ease;

}


.lrl-input-wrapper:hover {

    border-color:
        rgba(255, 255, 255, 0.22);

}


.lrl-input-wrapper.focused {

    border-color:
        rgba(124, 58, 237, 0.75);

    background:
        rgba(124, 58, 237, 0.07);

    box-shadow:

        0 0 0 4px
        rgba(124, 58, 237, 0.08),

        0 8px 30px
        rgba(124, 58, 237, 0.08);

}


.lrl-input {

    width: 100%;

    height: 100%;

    border: 0;

    outline: 0;

    background: transparent;

    color: #fff;

    font-family:
        'Vazirmatn',
        Tahoma,
        Arial,
        sans-serif;

    font-size: 13px;

    padding:
        0 48px 0 48px;

}


.lrl-input::placeholder {

    color:
        rgba(255, 255, 255, 0.30);

}


.lrl-input-icon {

    position: absolute;

    right: 17px;

    color:
        rgba(255, 255, 255, 0.43);

    font-size: 15px;

    transition:
        color 0.3s ease;

    pointer-events: none;

}


.lrl-input-wrapper.focused
.lrl-input-icon {

    color:
        #a78bfa;

}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.lrl-password-toggle {

    position: absolute;

    left: 14px;

    width: 32px;

    height: 32px;

    border: 0;

    background: transparent;

    color:
        rgba(255, 255, 255, 0.42);

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    transition:
        all 0.25s ease;

}


.lrl-password-toggle:hover {

    color: #fff;

    background:
        rgba(255, 255, 255, 0.08);

}


/* =========================================================
   OPTIONS
========================================================= */

.lrl-form-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    font-size: 11px;

}


.lrl-checkbox {

    display: flex;

    align-items: center;

    gap: 7px;

    cursor: pointer;

    color:
        rgba(255, 255, 255, 0.55);

    user-select: none;

}


.lrl-checkbox input {

    display: none;

}


.lrl-checkmark {

    position: relative;

    width: 16px;

    height: 16px;

    border-radius: 5px;

    border:
        1px solid
        rgba(255, 255, 255, 0.20);

    background:
        rgba(255, 255, 255, 0.04);

    transition:
        all 0.25s ease;

}


.lrl-checkbox input:checked
+ .lrl-checkmark {

    background:
        var(--lrl-primary);

    border-color:
        var(--lrl-primary);

}


.lrl-checkbox input:checked
+ .lrl-checkmark::after {

    content: "✓";

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    font-size: 10px;

}


.lrl-forgot {

    color:
        #a78bfa;

    text-decoration: none;

    transition:
        color 0.25s ease;

}


.lrl-forgot:hover {

    color:
        #c4b5fd;

}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.lrl-login-btn {

    position: relative;

    width: 100%;

    height: 56px;

    border: 0;

    border-radius: 15px;

    cursor: pointer;

    overflow: hidden;

    color: #fff;

    font-family:
        'Vazirmatn',
        Tahoma,
        Arial,
        sans-serif;

    font-size: 13.5px;

    font-weight: 600;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #5467f3
        );

    box-shadow:
        0 12px 30px
        rgba(124, 58, 237, 0.27);

    transition:
        all 0.3s ease;

}


.lrl-login-btn::before {

    content: "";

    position: absolute;

    top: 0;

    left: -100%;

    width: 80%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.22),
            transparent
        );

    transform:
        skewX(-20deg);

    transition:
        left 0.7s ease;

}


.lrl-login-btn:hover::before {

    left: 130%;

}


.lrl-login-btn:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 16px 38px
        rgba(124, 58, 237, 0.38);

}


.lrl-login-btn:active {

    transform:
        translateY(0);

}


.lrl-btn-content {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    transition:
        opacity 0.2s ease;

}


.lrl-btn-loader {

    display: none;

    position: absolute;

    top: 50%;

    left: 50%;

    width: 21px;

    height: 21px;

    border-radius: 50%;

    border:
        2px solid
        rgba(255, 255, 255, 0.35);

    border-top-color:
        #fff;

    animation:
        lrlSpin 0.7s
        linear
        infinite;

    transform:
        translate(-50%, -50%);

}


.lrl-login-btn.loading {

    cursor:
        wait;

    opacity: 0.85;

}


.lrl-login-btn.loading
.lrl-btn-content {

    opacity: 0;

}


.lrl-login-btn.loading
.lrl-btn-loader {

    display: block;

}


/* =========================================================
   REGISTER
========================================================= */

.lrl-login-bottom {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    margin-top: 23px;

    font-size: 11.5px;

    color:
        rgba(255, 255, 255, 0.45);

}


.lrl-login-bottom a {

    color:
        #a78bfa;

    text-decoration: none;

    font-weight: 600;

}


.lrl-login-bottom a:hover {

    color:
        #c4b5fd;

}


/* =========================================================
   FOOTER
   FULL WIDTH
========================================================= */

.lrl-login-footer {

    position: fixed;

    left: 0;

    right: 0;

    bottom: 0;

    z-index: 300;

    width: 100%;

    min-height: 52px;

    padding:
        10px 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    background:
        rgba(255, 255, 255, 0.055);

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-left: 0;

    border-right: 0;

    border-bottom: 0;

    border-radius: 0;

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);

    box-shadow:
        0 -10px 35px
        rgba(0, 0, 0, 0.15);

    color:
        rgba(255, 255, 255, 0.45);

    font-size: 10.5px;

}


.lrl-login-footer strong {

    color:
        rgba(255, 255, 255, 0.82);

    font-weight: 600;

}


.lrl-footer-divider {

    color:
        rgba(255, 255, 255, 0.22);

}


.lrl-login-footer a {

    color:
        #a78bfa;

    text-decoration: none;

    direction: ltr;

    transition:
        color 0.25s ease;

}


.lrl-login-footer a:hover {

    color:
        #c4b5fd;

}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes lrlCardEnter {

    from {

        opacity: 0;

        transform:
            translateY(35px)
            scale(0.96);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


@keyframes lrlLogoFloat {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-7px);

    }

}


@keyframes lrlFloat1 {

    0%,
    100% {

        margin-top: 0;

    }

    50% {

        margin-top: 35px;

    }

}


@keyframes lrlFloat2 {

    0%,
    100% {

        margin-left: 0;

    }

    50% {

        margin-left: 30px;

    }

}


@keyframes lrlFloat3 {

    0%,
    100% {

        transform:
            scale(1);

    }

    50% {

        transform:
            scale(1.2);

    }

}


@keyframes lrlSpin {

    to {

        transform:
            translate(-50%, -50%)
            rotate(360deg);

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .lrl-login-wrapper {

        padding:
            15px 16px 75px;

    }


    .lrl-login-card {

        max-width: 440px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    html,
    body {

        width: 100%;

        height: 100%;

        overflow: hidden;

    }


    .lrl-login-wrapper {

        position: fixed;

        inset: 0;

        width: 100%;

        height: 100dvh;

        min-height: 100dvh;

        display: flex;

        align-items: center;

        justify-content: center;

        padding:
            15px 10px 65px;

        overflow: hidden;

    }


    .lrl-back-btn {

        position: fixed;

        top: 15px;

        right: 14px;

        z-index: 400;

        padding:
            9px 13px;

        font-size: 11px;

        border-radius: 12px;

    }


    /* =====================================================
       CARD
    ===================================================== */

    .lrl-login-card {

        width: 100%;

        max-width: 430px;

        max-height:
            calc(100dvh - 100px);

        padding:
            28px 20px 23px;

        border-radius: 23px;

        overflow: hidden;

    }


    .lrl-logo-box {

        width: 78px;

        height: 78px;

        border-radius: 21px;

        margin-bottom: 16px;

    }


    .lrl-login-logo {

        width: 58px;

        height: 58px;

    }


    .lrl-login-header {

        margin-bottom: 25px;

    }


    .lrl-welcome {

        font-size: 11px;

    }


    .lrl-login-header h1 {

        font-size: 19px;

    }


    .lrl-login-header p {

        font-size: 11px;

    }


    .lrl-input-wrapper {

        height: 53px;

    }


    .lrl-input {

        font-size: 12px;

    }


    .lrl-form-options {

        font-size: 10px;

    }


    .lrl-login-btn {

        height: 54px;

        font-size: 12.5px;

    }


    .lrl-login-bottom {

        margin-top: 17px;

        font-size: 10.5px;

    }


    /* =====================================================
       FOOTER
    ===================================================== */

    .lrl-login-footer {

        position: fixed;

        left: 0;

        right: 0;

        bottom: 0;

        width: 100%;

        max-width: none;

        min-height: 48px;

        padding:
            9px 10px;

        border-radius: 0;

        border-left: 0;

        border-right: 0;

        border-bottom: 0;

        font-size: 8.5px;

        gap: 4px;

        white-space: nowrap;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .lrl-login-wrapper {

        padding:
            15px 10px 60px;

    }


    .lrl-login-card {

        max-height:
            calc(100dvh - 90px);

        padding:
            23px 16px 20px;

        border-radius: 21px;

    }


    .lrl-logo-box {

        width: 68px;

        height: 68px;

        margin-bottom: 12px;

    }


    .lrl-login-logo {

        width: 50px;

        height: 50px;

    }


    .lrl-login-header {

        margin-bottom: 19px;

    }


    .lrl-welcome {

        font-size: 10px;

    }


    .lrl-login-header h1 {

        font-size: 17px;

    }


    .lrl-login-header p {

        font-size: 10px;

    }


    .lrl-login-form {

        gap: 14px;

    }


    .lrl-input-group {

        gap: 6px;

    }


    .lrl-input-group label {

        font-size: 10.5px;

    }


    .lrl-input-wrapper {

        height: 49px;

    }


    .lrl-input {

        font-size: 11px;

    }


    .lrl-form-options {

        flex-direction: column;

        align-items: flex-start;

        font-size: 9px;

    }


    .lrl-login-btn {

        height: 50px;

        font-size: 11.5px;

    }


    .lrl-login-bottom {

        margin-top: 13px;

        font-size: 9.5px;

    }


    .lrl-login-footer {

        min-height: 45px;

        padding:
            8px 6px;

        font-size: 7.5px;

    }

}