/**
 * أنماط مشتركة للمشروع - بروفيكس
 * المتغيرات، الخط، شريط التمرير، أزرار وروابط البراند
 */

/* الخط الأساسي */
html,
body {
    font-family: 'El Messiri', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* شريط التمرير - الصفحة */
html,
body {
    scrollbar-width: thin;
    scrollbar-color: #e67821 #f1f5f9;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: #e67821;
    border-radius: 3px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: #c96518;
}

/* شريط التمرير - الحاويات الداخلية */
.scrollbar-primary {
    scrollbar-width: thin;
    scrollbar-color: #e67821 #f1f5f9;
}

.scrollbar-primary::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scrollbar-primary::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.scrollbar-primary::-webkit-scrollbar-thumb {
    background: #e67821;
    border-radius: 3px;
}

.scrollbar-primary::-webkit-scrollbar-thumb:hover {
    background: #c96518;
}

/* متغيرات اللون الأساسي */
:root {
    --primary: #e67821;
    --primary-dark: #c96518;
    --primary-light: #fef5ef;
}

/* شعار صفحة الضيف */
.guest-logo {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}

/* زر البراند */
.btn-primary {
    background-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* رابط البراند */
.link-primary {
    color: var(--primary);
}

.link-primary:hover {
    color: var(--primary-dark);
}

/* تركيز الحقول */
.focus-primary:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(230, 120, 33, 0.2);
}

.ring-primary:focus {
    --tw-ring-color: rgba(230, 120, 33, 0.25);
}

/* تبديل فورم الدخول/التسجيل (صفحة الموحدة) */
.auth-form-switcher {
    position: relative;
    min-height: 320px;
}

.auth-form-panel {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.auth-form-panel.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
