/* resources/css/filament-login.css */

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.sb-body {
    font-family: 'Cairo', sans-serif !important;
    background: #f5f9fe !important;
    min-height: 100vh;
}

/* ── Wrapper ── */
.sb-wrap {
    display: flex;
    min-height: 100vh;
    direction: rtl;
}

/* ══ يسار — لوحة الهوية ══ */
.sb-brand {
    flex: 1;
    min-height: 100vh;
    background: linear-gradient(145deg, #0e2d5e 0%, #1a6bbd 55%, #2277c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 64px 56px;
}

.sb-brand-inner {
    position: relative;
    z-index: 2;
    max-width: 460px;
    width: 100%;
}

.sb-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 48px;
}

.sb-tagline {
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2px;
    color: #fff;
    margin-bottom: 18px;
}
.sb-gold  { color: #F59E0B; }
.sb-lblue { color: #7ab8e8; }

.sb-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.62);
    line-height: 1.85;
    margin-bottom: 48px;
    font-weight: 400;
    max-width: 400px;
}

.sb-stats {
    display: flex;
    gap: 32px;
    padding: 20px 24px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    width: fit-content;
}

.sb-stat { display: flex; flex-direction: column; gap: 3px; }

.sb-snum {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1;
}

.sb-slbl {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

.sb-dots {
    position: absolute;
    bottom: -60px; left: -60px;
    width: 300px; height: 300px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 1;
}

.sb-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
.sb-blob-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 65%);
    top: -240px; right: -180px;
}
.sb-blob-2 {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 65%);
    bottom: -100px; left: 40px;
}

/* ══ يمين — فورم ══ */
.sb-form-panel {
    width: 500px;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
    box-shadow: -12px 0 60px rgba(26,107,189,0.07);
}

.sb-form-inner {
    width: 100%;
    max-width: 380px;
}

.sb-form-header { margin-bottom: 36px; }

.sb-icon {
    width: 50px; height: 50px;
    background: #e8f2fb;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    border: 1px solid #d0e6f7;
}

.sb-ftitle {
    font-size: 28px;
    font-weight: 900;
    color: #0a1f35;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.sb-fsub {
    font-size: 14px;
    color: #5a7a96;
    font-weight: 500;
}

/* ── Filament field overrides ── */
.sb-form-inner label,
.sb-form-inner .fi-fo-field-wrp > label,
.sb-form-inner .fi-label {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #0a1f35 !important;
}

.sb-form-inner input[type="email"],
.sb-form-inner input[type="password"],
.sb-form-inner input[type="text"],
.sb-form-inner .fi-input {
    font-family: 'Cairo', sans-serif !important;
    font-size: 14px !important;
    border: 1.5px solid #d0e6f7 !important;
    border-radius: 12px !important;
    padding: 13px 16px !important;
    color: #0a1f35 !important;
    background: #fafcff !important;
    width: 100% !important;
    transition: border-color .2s, box-shadow .2s !important;
}

.sb-form-inner input:focus,
.sb-form-inner .fi-input:focus {
    border-color: #1a6bbd !important;
    box-shadow: 0 0 0 3px rgba(26,107,189,0.12) !important;
    outline: none !important;
}

/* زر الدخول */
.sb-btn,
.sb-form-inner .fi-btn,
.sb-form-inner button[type="submit"] {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: #1a6bbd !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 24px rgba(26,107,189,0.3) !important;
    transition: all .25s !important;
    margin-top: 8px !important;
}

.sb-btn:hover,
.sb-form-inner .fi-btn:hover {
    background: #135295 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(26,107,189,0.38) !important;
}

.sb-btn:disabled {
    opacity: .7 !important;
    transform: none !important;
    cursor: not-allowed !important;
}

/* Responsive */
@media (max-width: 960px) {
    .sb-wrap       { flex-direction: column; }
    .sb-brand      { min-height: auto; padding: 48px 28px 56px; }
    .sb-form-panel { width: 100%; padding: 44px 28px; }
}

@media (max-width: 480px) {
    .sb-tagline    { font-size: 30px; }
    .sb-form-panel { padding: 32px 16px; }
    .sb-stats      { flex-wrap: wrap; gap: 16px; }
}