﻿:root {
    --main-color-for: #44917F;
    --main-color-for-shadow: rgba(68, 145, 127, 0.6);
    --main-color-for-hover: #357867;
} 
 
@font-face {
    font-family: 'vazirmatn-regular';
    src: url('../../mainlayout/fonts/vazir/vazirmatn-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'vazirmatn-bold';
    src: url('../../mainlayout/fonts/vazir/vazirmatn-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'vazirmatn-regular', sans-serif;
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
    overflow: hidden;
    position: relative;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out;
}

.circle1 {
    width: 400px;
    height: 400px;
    background: #00e5ff;
    top: -120px;
    right: -100px;
}

.circle2 {
    width: 250px;
    height: 250px;
    background: #00c853;
    bottom: -80px;
    left: -80px;
}

.circle3 {
    width: 180px;
    height: 180px;
    background: #ffc400;
    top: 30%;
    left: 40%;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

.login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* وسط‌چینی کامل */

    z-index: 10;
    max-width: 400px;
    width: 100%;
    backdrop-filter: blur(12px);
    text-align: center;
    /* حالت اولیه انیمیشن */
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 60px));
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.form-group input {
    width: 100%;
    padding: 12px 45px 12px 12px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: #444;
    transition: all 0.3s ease;
}

    .form-group input:focus {
        outline: none;
        box-shadow: 0 0 8px rgba(0, 188, 212, 0.4);
        background: #fff;
    }

.login-box .image-logo {
    width: 120px;
    margin-bottom: 20px;
}


.login-box {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
}

    .login-box h2 {
        font-weight: 700;
        margin-bottom: 25px;
        color: #333;
        display: block;
        font-size: 1.5em;
        margin-block-start: 0.83em;
        margin-block-end: 0.83em;
        margin-inline-start: 0px;
        margin-inline-end: 0px;
        font-weight: bold;
        unicode-bidi: isolate;
        font-family: 'vazirmatn-bold';
        text-align: right;
    }

.form-control {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding-right: 40px;
    font-size: 16px;
}

.form-group .bi-icone {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.login-btn {
    background: linear-gradient(45deg, #00bcd4, #009688);
    border: none;
    color: white;
    font-size: 16px;
    padding: 12px;
    border-radius: 12px;
    width: 100%;
    transition: 0.3s;
}

    .login-btn:hover {
        background: linear-gradient(45deg, #009688, #00796b);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

.footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

    .footer-link a {
        color: #00796b;
        text-decoration: underline;
    }

@media (max-width: 575.98px) {
    .login-box {
        padding: 30px 20px;
    }

    .form-control {
        font-size: 15px;
    }
}

.togglePassword {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
}

.cursor-pointer {
    cursor: pointer;
}

.dirtextltr {
    text-align: left !important;
    direction: ltr;
}

.error-text {
    text-align: right;
    font-size: 12px;
}

.font-12 {
    font-size: 12px;
}

dl, ol, ul {
    list-style: none;
}

.main-color-for-bg {
    background-color: var(--main-color-for) !important;
    color: #fff !important;
    border: none;
    color: white;
    font-size: 16px;
    padding: 12px;
    border-radius: 12px;
    width: 100%;
    transition: 0.3s;
}

    .main-color-for-bg:hover {
        background-color: var(--main-color-for-hover) !important;
        color: #fff !important;
        transform: translateY(-2px);
    }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.font-13{
    font-size:13px;
}