﻿
body {
    font-family: 'Vazirmatn', sans-serif;
    height: 100vh;
    margin: 0;
    background: linear-gradient(-45deg, #f5f7fa, #e4ecf7, #fefefe, #e6f0ff);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    position: relative;
    overflow: hidden;
}

    body::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('data:image/svg+xml,%3Csvg width="4" height="4" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23ccc" fill-opacity="0.05"%3E%3Ccircle cx="2" cy="2" r="1"/%3E%3C/g%3E%3C/svg%3E');
        z-index: 0;
    }

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.glass-card {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.5), rgba(255,255,255,0.2)), linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,0,0,0.05), rgba(0,128,0,0.05), rgba(0,0,255,0.05));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 10px 25px rgba(255,0,0,0.2), 0 0 15px rgba(0,128,0,0.2);
    padding: 2.5rem 2rem 3rem;
    width: 100%;
    max-width: 400px;
    z-index: 1;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

    .glass-card::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
        transform: rotate(25deg);
        animation: lightSweep 5s linear infinite;
        pointer-events: none;
        z-index: 0;
    }

@keyframes lightSweep {
    0% {
        transform: rotate(25deg) translateX(-100%);
    }

    100% {
        transform: rotate(25deg) translateX(100%);
    }
}

h2 {
    font-weight: 700;
    font-size: 1.7rem;
    background: linear-gradient(90deg, #ff4e50, #1fa2ff, #00c9a7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleColor 8s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes titleColor {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* استایل input و آیکون داخلش */

.input-wrapper {
    position: relative;
}

    .input-wrapper input {
        width: 100%;
        padding-right: 0.75rem;
        padding-left: 2.75rem; /* جا برای آیکون سمت چپ */
        background: rgba(255, 255, 255, 0.6);
        border: none;
        border-radius: 0.375rem;
        height: 48px;
        transition: all 0.3s ease;
    }

        .input-wrapper input:focus {
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 0 0 0.25rem rgba(255, 77, 109, 0.2);
            outline: none;
        }

/* آیکون سمت چپ داخل input */
.input-icon-left {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #4b6cb7;
    font-size: 1.2rem;
 
    user-select: none;
    z-index: 2;
    transition: color 0.3s ease;
}

/* آیکون نمایش پسورد سمت راست داخل input */
.input-icon-right {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 1.2rem;
    z-index: 3;
    transition: color 0.3s ease;
}

    .input-icon-right:hover {
        color: #ff4e50;
    }

button.btn-primary {
    background-image: linear-gradient(45deg, #ff4e50, #f9d423);
    border: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
    height: 48px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 0.5rem;
}

    button.btn-primary:hover {
        background-image: linear-gradient(45deg, #e94057, #8a2387);
        box-shadow: 0 0 15px rgba(255, 77, 109, 0.4);
    }



.icon-circle {
    position: absolute;
    top: 20%; /* بالای فرم */
    left: 50%; /* وسط فرم */
    transform: translate(-50%, -50%); /* نصف عرض و ارتفاع رو جابجا می‌کنیم */
    background: #fff;
    border-radius: 50%;
    padding: 1rem;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3), 0 0 30px rgba(0, 123, 255, 0.2);
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}


@keyframes float {
    0% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-8px);
    }

    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
}


.login-box .image-logo {
    width: 60px;
    margin-bottom: 20px;
}

.img-captcha {
    width: 160px;
}

.subtle-hint {
    text-align: center;
    font-size: 0.85rem;
   
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}


    .subtle-hint a {
        color: #949494;
        text-decoration: underline;
    }
.cursor-pointer {
    cursor: pointer;
}

.dirtextltr {
    text-align: left !important;
    direction: ltr;
}

.error-text {
    text-align: right;
    font-size: 12px;
}

.font-12 {
    font-size: 12px;
}
.image-logo {
    width: 120px;
    margin-bottom: 20px;
}
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;
}