/* login.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: url('../../img/background2.jpg') center center / cover no-repeat;
    min-height: 100vh;
}

.container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
}

.left {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    background: inherit;
}

.right {
    position: absolute;
    top: 0;
    right: 0;
    width: 74vh;
    height: 100%;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.3);
    clip-path: polygon(40% 0%, 100% 0%, 100% 100%, 20% 100%);
    margin-left: auto;
    flex: 1;
}
@media (max-height: 1255px) {
    .right {
        width: 100vh;
    }
}
@media (max-height: 1080px) {
    .right {
        width: 100vh;
    }
}
@media (max-height: 950px) {
    .right {
        width: 120vh;
    }
}
@media (max-height: 810px) {
    .right {
        width: 140vh;
    }
}
.login-container {
    --form-width: 400px;
    --aspect-ratio: 1.4;
    --login-box-color: #272727;
    --input-color: #3a3a3a;
    --button-color: #373737;
    --footer-color: rgba(255, 255, 255, 0.5);
    display: flex;
    right: 11rem;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--login-box-color);
    border-radius: 24px;
    width: calc(var(--form-width) + 1px);
    height: calc(var(--form-width) * var(--aspect-ratio) + 1px);
    z-index: 8;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 0 8px rgba(255, 255, 255, 0.1),
        0 0 16px rgba(255, 255, 255, 0.08);
    margin-left: auto;
}

.login-container::before {
    content: "";
    position: absolute;
    inset: -50px;
    z-index: -2;
    background: conic-gradient(from 45deg,
            transparent 75%,
            #fff,
            transparent 100%);
    animation: spin 4s ease-in-out infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.login-box {
    background: var(--login-box-color);
    border-radius: 24px;
    padding: 28px;
    width: var(--form-width);
    height: calc(var(--form-width) * var(--aspect-ratio));
    position: absolute;
    z-index: 10;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow:
        inset 0 40px 60px -8px rgba(255, 255, 255, 0.12),
        inset 4px 0 12px -6px rgba(255, 255, 255, 0.12),
        inset 0 0 12px -4px rgba(255, 255, 255, 0.12);

}

.form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.logo {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2),
            rgba(0, 0, 0, 0.2));
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.2),
        -8px -8px 16px rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    border: 2px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo::before {
    content: "";
    position: absolute;
    bottom: 10px;
    width: 50%;
    height: 20%;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border: 2.5px solid #fff;
}

.logo::after {
    content: "";
    position: absolute;
    top: 10px;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    border: 2.5px solid #fff;
}

.header {
    width: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    padding: 6px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input {
    font-family: "Vazirmatn", sans-serif;
    width: 100%;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--input-color);
    color: white;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input:focus {
    border-color: #fff;
    box-shadow: 0 0 6px #ffffff50;
}

.ep {
    font-family: "Vazirmatn", sans-serif;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    width: 100%;
}

.button {
    font-family: "Vazirmatn", sans-serif;
    margin: 20px 0 10px 0;
    background-color: rgb(21, 23, 23);
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    height: 50px;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.39);
}

.sign-in {
    margin-top: 5px;
}

.google-sign-in {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.button:hover {
    background: rgb(21, 23, 23);
    box-shadow: 0px 0px 15px rgba(41, 41, 41, 0.6);
    text-shadow: 0px 0px 5px #fff;
}

.icon {
    height: 16px;
}

.footer {
    width: 100%;
    text-align: right;
    color: var(--footer-color);
    font-size: 12px;
    margin: 2vh 0vh;
}

.footer .link {
    position: relative;
    color: var(--footer-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 0;
    border-radius: 6px;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.footer .link:hover {
    color: #fff;
}

.footer .link:hover::after {
    width: 100%;
}

.riotlogo {
    position: fixed;
    height: 130px;
    filter: drop-shadow(0 0 15px rgb(0, 0, 0));
    right: 50%;
    z-index: 5;
    transform: translateX(50%);
    top: 1rem;
}

/* استایل زیبا و مدرن برای پیام خطا */
.error {
    color: #ca0202;
    text-shadow: 0px 0px 15px #000000;
    text-align: center;
    padding: 8px 16px;
    margin: -20px auto;
    width: fit-content;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    animation: fadeIn 0.4s ease-in-out;
}
/* انیمیشن ظاهر شدن */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    .riotlogo {
        position: fixed;
        height: 100px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        top: 0.5rem;
        z-index: 10;
    }

    body {
        overflow: auto;
    }

    .container {
        flex-direction: column;
        height: auto;
    }

    .left {
        position: relative;
        width: 100%;
        height: 40vh;
        clip-path: none;
        padding: 1rem;
    }

    .right {
        clip-path: none;
        padding: 1rem;
        justify-content: center;
        align-items: center;
        margin-left: 0;
        width: 100%;
    }

    .login-container {
        right: 0;
        --form-width: 90vw;
        max-width: 350px;
        width: 100%;

        margin: 0 auto;
    }

    .login-box {
        width: 100%;

        padding: 1.5rem;
    }

    .header {
        font-size: 1.5rem;
    }

    .input {
        font-size: 16px;
        /* Prevent zoom */
        padding: 0.75rem;
    }

    .button {
        height: 45px;
        font-size: 1rem;
    }

    .ep {
        font-size: 14px;
        text-align: right;
    }

    .footer {
        font-size: 14px;
        text-align: center;
    }


}

@media (max-width: 480px) {
    .login-box {
        padding: 1rem;
    }

    .header {
        font-size: 1.25rem;
    }


}