/* ============================================
   استایل اختصاصی صفحه لاگین (v2)
   ============================================ */

:root {
    --primary: #E91E63;
    --primary-dark: #C2185B;
    --primary-light: #FCE4EC;
    --dark: #1A1A1A;
    --gray: #6B7280;
    --red: #ef4444;
    --bg: #FFF5F7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

body {
    background: linear-gradient(135deg, #FFF5F7 0%, #FCE4EC 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    direction: rtl;
}

.login-card {
    background: white;
    border-radius: 24px;
    padding: 40px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(233, 30, 99, 0.15);
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.logo-fallback {
    font-size: 4rem;
    display: block;
    line-height: 1;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 8px;
    color: var(--dark);
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--gray);
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.7;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px 18px;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.25s;
    background: #F8FAFC;
    color: var(--dark);
    text-align: center;
}

.input-group input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
}

.otp-input {
    font-size: 28px !important;
    letter-spacing: 12px;
    font-weight: 900;
    text-align: center;
    padding: 18px !important;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 6px 18px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(233, 30, 99, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.resend-text {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

.resend-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.demo-hint {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: #9CA3AF;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #FCE4EC;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--dark);
    color: white;
    padding: 14px 24px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 9999;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: var(--red);
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }

    .login-title {
        font-size: 1.3rem;
    }

    .login-logo img {
        height: 60px;
    }
}