/**
 * صفحات ورود مهمان و لینک منقضی — فقط از همین دامنه لود می‌شود (بدون CDN خارجی).
 */
.guest-page {
    box-sizing: border-box;
    margin: 0;
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Vazirmatn', ui-sans-serif, system-ui, sans-serif;
    direction: rtl;
    text-align: right;
}

.guest-page--login {
    background: linear-gradient(to bottom left, #eff6ff, #e0e7ff);
}

.guest-page--expired {
    background: linear-gradient(to bottom left, #fef2f2, #ffedd5);
}

.guest-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    max-width: 28rem;
    width: 100%;
    padding: 2rem;
}

.guest-card--center {
    text-align: center;
}

.guest-header {
    text-align: center;
    margin-bottom: 2rem;
}

.guest-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.guest-icon-wrap--login {
    background: linear-gradient(to right, #2563eb, #4f46e5);
}

.guest-icon-wrap--expired {
    background: #fee2e2;
}

.guest-icon {
    width: 2rem;
    height: 2rem;
}

.guest-icon--white {
    color: #fff;
}

.guest-icon--red {
    color: #dc2626;
}

.guest-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
}

.guest-subtitle {
    color: #4b5563;
    margin: 0;
    font-size: 1rem;
}

.guest-errors {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
}

.guest-errors__row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.guest-errors__icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #f87171;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.guest-errors__title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #991b1b;
    margin: 0 0 0.25rem;
}

.guest-errors ul {
    margin: 0;
    padding-right: 1.25rem;
    font-size: 0.875rem;
    color: #b91c1c;
}

.guest-field {
    margin-bottom: 1rem;
}

.guest-field--last {
    margin-bottom: 1.5rem;
}

.guest-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.guest-required {
    color: #ef4444;
}

.guest-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.guest-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.guest-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.guest-btn--primary {
    color: #fff;
    background: linear-gradient(to right, #2563eb, #4f46e5);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12);
}

.guest-btn--primary:hover:not(:disabled) {
    background: linear-gradient(to right, #1d4ed8, #4338ca);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.guest-btn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
}

.guest-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.guest-footer p {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

.guest-text {
    color: #4b5563;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}
