/* تنظیمات پایه و اعمال فونت وزیر */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
    letter-spacing: 0;
}

body {
    background: radial-gradient(circle at 50% 50%, #1a2a6c, #27213c, #0a0813);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    color: #fff;
}

/* کارت اصلی لاگین با افکت Glassmorphism */
.login-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 45px 35px;
    border-radius: 24px;
    width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.6s ease-out;
}

.card-header {
    text-align: center;
    margin-bottom: 35px;
}

.card-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #00f2fe;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
    margin-bottom: 8px;
}

.card-header p {
    font-size: 13px;
    color: #a0aec0;
    line-height: 1.6;
}

/* انیمیشن فیلدهای ورودی شناور (Floating Labels) */
.input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.input-wrapper label {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

/* انیمیشن انتقال لیبل به بالا هنگام کلیک یا پر بودن فیلد */
.input-wrapper input:focus ~ label,
.input-wrapper input:not(:placeholder-shown) ~ label {
    top: -12px;
    right: 10px;
    font-size: 12px;
    color: #00f2fe;
    background: #1e1b29; /* هم‌رنگ پس‌زمینه کارت برای محو نشدن خط متمایز */
    padding: 2px 8px;
    border-radius: 4px;
}

.input-wrapper input:focus {
    border-color: #00f2fe;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

/* ساختار بخش کپچا */
.captcha-wrapper {
    margin-bottom: 25px;
}

.captcha-box {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-display {
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 120px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.captcha-display svg {
    height: 100%;
    width: 100%;
}

.captcha-box input {
    flex: 1;
    padding: 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    outline: none;
    text-align: center;
    transition: all 0.3s ease;
}

.captcha-box input:focus {
    border-color: #00f2fe;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

/* دکمه ثبت فرم درخشان */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5);
    opacity: 0.95;
}

.submit-btn:active {
    transform: translateY(1px);
}

/* باکس نمایشی خطاهای سیستم چت */
.alert-message {
    background: rgba(245, 101, 101, 0.15);
    border: 1px solid rgba(245, 101, 101, 0.4);
    color: #feb2b2;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 25px;
    text-align: center;
    animation: shake 0.4s ease-in-out;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}