/*==================================================
  AUTH PAGES (Login / Register / Password Reset) - ACDIVET
  التصميم المضغوط للغاية (إزالة الفراغات وتقليص الحقول)
  Color: #217c3d
==================================================*/

:root {
    --auth-primary: #1f7b3b;
    --auth-primary-dark: #185c2d;
    --auth-primary-light: #e6f4ea;
    --auth-text: #222;
    --auth-text-light: #6b7280;
    --auth-border: #d1d5db;
    --auth-bg: #e6f4ea;
    --auth-radius: 12px;
    --auth-transition: .25s ease;
    --auth-shadow: 0 8px 25px rgba(0, 0, 0, .05);
}

/* الخلفية العامة لصفحة الدخول/التسجيل */
body.fi-simple {
    background: var(--auth-bg) !important;
}

/* كونتينر التوسيط العام */
.fi-simple-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.fi-simple-main-ctn {
    width: 100%;
    max-width: 900px !important;
}

/* الكرت الرئيسي: Split-screen */
.fi-simple-main {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    max-width: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    padding: 0 !important;
    border: none !important;
}

/* ترويسة الصفحة (الهيدر واللوجو) */
.fi-simple-header {
    text-align: center;
    padding: 15px 20px 0 !important;
    margin-bottom: 0 !important;
}

.fi-logo {
    margin-bottom: 4px;
    height: 48px !important;
}

.fi-simple-header-heading {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--auth-text) !important;
}

.fi-simple-header-subheading {
    font-size: 11px !important;
    color: var(--auth-text-light) !important;
    margin-top: 2px;
}

/* إلغاء التباعدات والفراغات الضخمة داخل الفورم وشبكات فيلامنت */
form[wire\:submit],
.fi-simple-main form {
    padding: 10px 20px 15px !important;
}

.fi-fo-component-ctn,
.fi-form,
form.fi-form,
.fi-simple-page section,
.fi-simple-page section.grid {
    gap: 6px !important;
    row-gap: 6px !important;
}

/* تقليص مسافات الحقول الفردية */
.fi-fo-field-wrp {
    margin-bottom: 4px !important;
}

.fi-fo-field-wrp .grid,
div[data-field-wrapper] .grid {
    gap: 4px !important;
    row-gap: 4px !important;
}

/* أي محتوى إضافي تحت الفورم */
.fi-simple-main-ctn .fi-simple-main > div:not(.fi-simple-header):not(form):not(.auth-side-panel) {
    padding-inline: 20px;
    padding-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* الحقول (Inputs) بارتفاع رفيع ومضغوط جداً */
.fi-input-wrp {
    border-radius: 6px !important;
    border: 1px solid var(--auth-border) !important;
    background: #fff !important;
    box-shadow: none !important;
    min-height: 32px !important;
    height: 32px !important;
}

.fi-input-wrp:hover {
    border-color: #b7d6bf !important;
}

.fi-input-wrp:focus-within {
    border-color: var(--auth-primary) !important;
    box-shadow: 0 0 0 .12rem rgba(31, 123, 59, .1) !important;
}

.fi-input,
.fi-select-input {
    min-height: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
    color: var(--auth-text) !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

/* حقل الهاتف (Phone Input) إن وجد */
.fi-fo-phone-input,
.fi-fo-phone-input .iti,
.fi-fo-phone-input input {
    height: 32px !important;
    min-height: 32px !important;
    font-size: 12px !important;
}

.fi-input::placeholder {
    color: #9ca3af !important;
}

/* الليبل فوق كل حقل */
.fi-fo-field-wrp-label span {
    font-weight: 600 !important;
    font-size: 11px !important;
    color: var(--auth-text) !important;
    line-height: 1 !important;
}

.fi-fo-field-wrp-label {
    margin-bottom: 2px !important;
}

/* الأزرار (Buttons) بارتفاع مدمج ومتناسق مع الحقول */
button.fi-btn {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 34px !important;
    border-radius: 6px !important;
    background: var(--auth-primary) !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    margin-top: 4px;
}

button.fi-btn:hover {
    background: var(--auth-primary-dark) !important;
    color: #fff !important;
}

button.fi-btn .fi-btn-label,
button.fi-btn svg,
button.fi-btn span {
    color: #fff !important;
    fill: #fff !important;
}

/* الروابط تحت الفورم */
.fi-simple-main .fi-link,
.fi-simple-main-ctn a:not(.fi-btn),
.fi-simple-header-subheading a {
    color: #227b3c !important;
    font-weight: 600;
    font-size: 11px;
}

/* ============== القسم الجانبي الأيمن بمساحات مضغوطة ============== */
.auth-side-panel {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(rgba(31, 123, 59, .88), rgba(31, 123, 59, .88)),
        url("/storage/37/01JDKZ15C1NMVNHWR8RM3WNDMV.png");
    background-size: cover;
    background-position: center;
}

.auth-side-panel h2 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.auth-side-panel p {
    font-size: 16px;
    color: rgba(255, 255, 255, .9);
    line-height: 1.4;
}

.auth-side-panel ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.auth-side-panel li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
}

.auth-side-panel li i {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    font-size: 11px;
}

/* ============== Responsive ============== */
@media (max-width: 991px) {
    .fi-simple-main {
        grid-template-columns: 1fr;
    }

    .auth-side-panel {
        display: none;
    }

    .fi-simple-header,
    .fi-simple-main form,
    .fi-simple-main-ctn .fi-simple-main > div:not(.fi-simple-header):not(form):not(.auth-side-panel) {
        padding-inline: 15px !important;
    }
}