@font-face {
    font-family: "Vazirmatn";
    src: url("../../fonts/Vazirmatn-RD-Medium.woff2") format("woff2-variations");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../../fonts/Vazirmatn-RD-Bold.woff2") format("woff2-variations");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #6a5af9;
    --primary-light: #8e7dff;
    --bg-1: #f3f4ff;
    --glass: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.35);
    --text-main: #2a2a2a;
    --text-soft: #666;
}

*{
    font-family: "Vazirmatn";
}

html, body {
    height: 100%;
    overflow: hidden;
}

/* Background */
.auth-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    background: #eee;
}

/* دایره های نور */
.gradient-1,
.gradient-2,
.auth-bg::before,
.auth-bg::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(170px);
    opacity: 0.85;
}

/* مسیر حرکت اول */
@keyframes floatA {
    0% { transform: translate(0,0) scale(1); }
    25% { transform: translate(120px,-80px) scale(1.15); }
    50% { transform: translate(60px,120px) scale(1.2); }
    75% { transform: translate(-80px,40px) scale(1.08); }
    100% { transform: translate(0,0) scale(1); }
}

/* مسیر حرکت دوم */
@keyframes floatB {
    0% { transform: translate(0,0) scale(1); }
    25% { transform: translate(-110px,90px) scale(1.1); }
    50% { transform: translate(90px,-120px) scale(1.18); }
    75% { transform: translate(-60px,-60px) scale(1.05); }
    100% { transform: translate(0,0) scale(1); }
}

/* مسیر سوم */
@keyframes floatC {
    0% { transform: translate(0,0) scale(1); }
    33% { transform: translate(140px,40px) scale(1.15); }
    66% { transform: translate(-80px,120px) scale(1.12); }
    100% { transform: translate(0,0) scale(1); }
}

/* مسیر چهارم */
@keyframes floatD {
    0% { transform: translate(0,0) scale(1); }
    33% { transform: translate(-120px,-60px) scale(1.14); }
    66% { transform: translate(70px,-130px) scale(1.18); }
    100% { transform: translate(0,0) scale(1); }
}

/* دایره اول */
.gradient-1 {
    top: -200px;
    right: -120px;
    background: #8e7dff;
    animation: floatA 6.5s ease-in-out infinite;
}

/* دایره دوم */
.gradient-2 {
    bottom: -200px;
    left: -120px;
    background: #6a5af9;
    animation: floatB 7.5s ease-in-out infinite;
}

/* دایره سوم */
.auth-bg::before {
    top: 30%;
    left: 10%;
    background: #a79bff;
    animation: floatC 8s ease-in-out infinite;
}

/* دایره چهارم */
.auth-bg::after {
    bottom: 25%;
    right: 15%;
    background: #7b6cff;
    animation: floatD 7s ease-in-out infinite;
}

/* Main Wrapper */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Glass Card */
.login-container {
    backdrop-filter: blur(22px);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 26px;
    padding: 2.2rem 2rem;
    margin-bottom: 10vh;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Area */
.logo-area {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-area img {
    width: 70px;
    margin-bottom: 0.8rem;
}

.logo-area h1 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin: 0;
}

.logo-area p {
    color: var(--text-soft);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.alert.error {
    background: #ffe5e5;
    color: #c33;
}

.alert.success {
    background: #e6ffe6;
    color: #2a8f2a;
}

.icon {
    font-weight: 800;
    font-size: 1rem;
}

/* Inputs */
.input-group {
    margin-bottom: 1.2rem;
    margin-left: 1.7rem;
}

.input-group label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.input-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: 0.25s ease;
    background: transparent !important;
}

/* Password Box */
.password-box {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent !important;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 0 1.2rem;

}

.password-box input {
    flex: 1;
    border: none;
    padding: 1rem 0;
    background: transparent !important;
    font-size: 1rem;
    width: 100%;
    outline: none;
}

.password-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(120, 85, 255, 0.2);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    box-shadow: 0 0 0px 1000px transparent inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #777;
    padding: 0 0.3rem;
}

/* Options */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.7rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.forgot {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
}

/* Button */
.btn-login {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(120, 85, 255, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 1.7rem;
}

.footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
