/* ==========================================================================
   فونت Vazirmatn
   ========================================================================== */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* ==========================================================================
   متغیرها (Design Tokens)
   ========================================================================== */
:root {
    --color-primary: #6c5ce7;
    --color-primary-dark: #5744d6;
    --color-secondary: #00cec9;
    --color-accent: #fdcb6e;
    --color-pink: #fd79a8;
    --color-success: #00b894;
    --color-error: #e74c3c;
    --color-text: #2d3436;
    --color-text-muted: #7f8c9b;
    --color-white: #ffffff;
    --color-input-bg: #f6f7fb;

    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 10px;

    --shadow-card: 0 20px 60px rgba(108, 92, 231, 0.18);
    --shadow-btn: 0 10px 25px rgba(108, 92, 231, 0.35);

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   پایه
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', system-ui, sans-serif;
    margin: 0;
}

/* ==========================================================================
   صفحه ورود + پس‌زمینه گرادیانی
   ========================================================================== */
.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 45%, #00cec9 100%);
    background-size: 200% 200%;
    animation: gradientMove 12s ease infinite;
}

@keyframes gradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   المان‌های شناور آموزشی
   ========================================================================== */
.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    font-size: 2.4rem;
    opacity: 0.55;
    animation: float 7s ease-in-out infinite;
    user-select: none;
}

.shape--book   { top: 12%; left: 12%; animation-delay: 0s; }
.shape--pencil { top: 20%; right: 15%; animation-delay: 1s; font-size: 2rem; }
.shape--star   { bottom: 18%; left: 18%; animation-delay: 2s; font-size: 1.8rem; }
.shape--bulb   { bottom: 22%; right: 14%; animation-delay: 1.5s; }
.shape--rocket { top: 50%; left: 6%; animation-delay: 0.7s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-22px) rotate(8deg); }
}

/* ==========================================================================
   کارت ورود
   ========================================================================== */
.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 430px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px 34px;
    box-shadow: var(--shadow-card);
    animation: cardIn 0.6s ease both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ------------- هدر کارت ------------- */
.login-card__header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: var(--shadow-btn);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

.login-card__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 6px;
}

.login-card__subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ==========================================================================
   فرم و ورودی‌ها
   ========================================================================== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--color-input-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

.input-wrapper--error {
    border-color: var(--color-error);
    background: #fdf0ef;
}

.input-icon {
    padding: 0 14px;
    font-size: 1.1rem;
    line-height: 1;
}

.form-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    outline: none;
    width: 100%;
}

.form-input::placeholder {
    color: #b2bac6;
}

/* دکمه نمایش رمز */
.toggle-password {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 14px;
    line-height: 1;
}

/* ==========================================================================
   خطاهای اعتبارسنجی
   ========================================================================== */
.field-error {
    font-size: 0.82rem;
    color: var(--color-error);
    display: flex;
    align-items: center;
    gap: 4px;
    animation: shake 0.3s ease;
}

.field-error::before {
    content: '⛔';
    font-size: 0.9rem;
}

.alert--error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fdf0ef;
    border: 1px solid #f5c6c2;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 20px;
    animation: shake 0.35s ease;
}

.alert__icon { font-size: 1.1rem; }

.alert__list {
    margin: 0;
    padding-inline-start: 18px;
    font-size: 0.85rem;
    color: var(--color-error);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-5px); }
    75%      { transform: translateX(5px); }
}

/* ==========================================================================
   چک‌باکس سفارشی
   ========================================================================== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox input {
    display: none;
}

.checkbox__box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #cdd4e0;
    transition: var(--transition);
    position: relative;
}

.checkbox input:checked + .checkbox__box {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox input:checked + .checkbox__box::after {
    content: '✓';
    color: #fff;
    font-size: 0.8rem;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox__label {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   دکمه ورود
   ========================================================================== */
.btn-login {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink));
    color: #fff;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: var(--transition);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(108, 92, 231, 0.45);
}

.btn-login:active {
    transform: translateY(-1px) scale(0.99);
}

.btn-login__arrow {
    transition: var(--transition);
}

.btn-login:hover .btn-login__arrow {
    transform: translateX(-6px);
}

/* ==========================================================================
   فوتر کارت
   ========================================================================== */
.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.login-footer__link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.login-footer__link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ==========================================================================
   ریسپانسیو
   ========================================================================== */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .login-card__title { font-size: 1.35rem; }
    .shape { display: none; }
}

/* دسترس‌پذیری: کاهش انیمیشن */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
	
	
	
}