/* صفحه لاگین آینه - طراحی Figma دقیق */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.ayene-login-page {
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #D6E8FF 0%, #E8D9F5 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 20px 40px;
    direction: rtl;
    overflow-y: auto;
}

.ayene-login-container {
    width: 100%;
    max-width: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

/* لوگو و آینه */
.ayene-logo-section {
    text-align: center;
    margin-bottom: 24px;
    margin-top: 20px;
}

.ayene-mirror-frame {
    width: 180px;
    height: 240px;
    margin: 0 auto 16px;
    position: relative;
}

.ayene-mirror-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

.ayene-welcome-text {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 17px;
    font-weight: 600;
    color: #000000;
    text-align: center;
    line-height: 1.7;
    letter-spacing: -0.3px;
}

.ayene-enter-link {
    display: inline-block;
    background: #2F7EED;
    color: white;
    padding: 6px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-top: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(47, 126, 237, 0.25);
}

.ayene-enter-link:hover {
    background: #2869D6;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(47, 126, 237, 0.35);
}

/* فرم لاگین */
.ayene-login-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 28px 20px 24px;
    width: 100%;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.ayene-form-title {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    text-align: right;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

/* فیلدهای ورودی */
.ayene-form-group {
    margin-bottom: 18px;
}

.ayene-form-label {
    display: none; /* لیبل‌ها در طراحی Figma نشان داده نشده‌اند */
}

.ayene-input-wrapper {
    position: relative;
}

.ayene-form-input {
    width: 100%;
    padding: 13px 16px;
    padding-left: 16px;
    border: 1px solid #E8E8E8;
    border-radius: 10px;
    font-size: 14px;
    color: #000000;
    background: #F5F5F7;
    transition: all 0.2s ease;
    direction: ltr;
    text-align: right;
    font-family: 'Vazir', sans-serif;
}

.ayene-form-input::placeholder {
    color: #C7C7CC;
    direction: rtl;
    font-size: 13px;
}

.ayene-form-input:focus {
    outline: none;
    border-color: #2F7EED;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(47, 126, 237, 0.08);
}

/* آیکون چشم برای رمز عبور */
.ayene-password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C7C7CC;
    transition: color 0.2s ease;
}

.ayene-password-toggle:hover {
    color: #2F7EED;
}

.ayene-password-toggle i {
    font-size: 20px;
}

/* اینپوت رمز عبور با آیکون */
.ayene-form-input.has-icon {
    padding-left: 42px;
}

/* لینک فراموشی رمز عبور */
.ayene-forgot-password {
    display: block;
    text-align: left;
    font-size: 12px;
    color: #2F7EED;
    text-decoration: none;
    margin-top: 6px;
    transition: color 0.2s ease;
    font-weight: 500;
}

.ayene-forgot-password:hover {
    color: #2869D6;
    text-decoration: none;
}

/* چک‌باکس مرا به خاطر بسپار */
.ayene-remember-wrapper {
    display: flex;
    align-items: center;
    margin: 16px 0 20px;
}

.ayene-remember-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    cursor: pointer;
    accent-color: #2F7EED;
}

.ayene-remember-label {
    font-size: 13px;
    color: #000000;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

/* دکمه ورود */
.ayene-submit-btn {
    width: 100%;
    padding: 13px;
    background: #2F7EED;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(47, 126, 237, 0.25);
    font-family: 'Vazir', sans-serif;
}

.ayene-submit-btn:hover {
    background: #2869D6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 126, 237, 0.35);
}

.ayene-submit-btn:active {
    transform: translateY(0);
}

/* لینک ثبت‌نام */
.ayene-signup-link {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #666666;
}

.ayene-signup-link a {
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ayene-signup-link a:hover {
    color: #2F7EED;
}

/* پیام خطا */
.ayene-alert {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    text-align: right;
}

.ayene-alert-danger {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

.ayene-alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

/* متن کوچک در پایین */
.ayene-footer-text {
    text-align: center;
    font-size: 11px;
    color: #A0A0A5;
    margin-top: 20px;
    line-height: 1.5;
    padding: 0 8px;
}

/* Responsive */
@media (max-width: 480px) {
    body.ayene-login-page {
        padding: 16px 16px 32px;
    }

    .ayene-login-card {
        padding: 24px 18px 20px;
    }

    .ayene-mirror-frame {
        width: 160px;
        height: 220px;
    }

    .ayene-welcome-text {
        font-size: 16px;
    }

    .ayene-form-title {
        font-size: 17px;
    }
}

@media (max-width: 360px) {
    .ayene-mirror-frame {
        width: 140px;
        height: 200px;
    }
}

/* انیمیشن fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ayene-login-card {
    animation: fadeIn 0.4s ease;
}

.ayene-logo-section {
    animation: fadeIn 0.4s ease 0.15s backwards;
}
