:root {
    --brand-primary: #0d6efd;
    --brand-primary-dark: #0b5ed7;
    --brand-dark: #0f172a;
    --brand-text: #1e293b;
    --brand-muted: #64748b;
    --brand-border: #dbe4f0;
    --brand-soft: #eff6ff;
    --brand-white: #ffffff;
    --brand-danger: #dc2626;
    --card-radius: 28px;
}

* {
    font-family: "Heebo", sans-serif;
}

html,
body {
    direction: rtl;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 100% 0%, rgba(13, 110, 253, 0.16), transparent 22%),
        radial-gradient(circle at 0% 100%, rgba(14, 165, 233, 0.14), transparent 24%),
        linear-gradient(135deg, #f8fbff 0%, #f1f6ff 45%, #f8fafc 100%);
    color: var(--brand-text);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 32px 0;
}

.login-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.login-card {
    border: none;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
    background: #fff;
}

.login-form-side {
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: 48px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

.login-form-box {
    width: 100%;
    max-width: 430px;
    margin: auto;
}

.system-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.login-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: var(--brand-primary);
    font-size: 1.7rem;
    margin-bottom: 20px;
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--brand-dark);
}

.login-subtitle {
    color: var(--brand-muted);
    line-height: 1.9;
    margin-bottom: 28px;
}

.form-label {
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.input-group-auth {
    direction: rtl;
    display: flex;
    align-items: stretch;
}

/* كل العناصر */
.input-group-auth .input-group-text,
.input-group-auth .form-control {
    height: 56px;
    border: 1px solid #dbe4f0;
    background: #fff;
}

/* أيقونة اليمين */
.input-group-auth > .input-group-text:first-child {
    border-radius: 0 16px 16px 0 !important;
    border-left: none;
}

/* الحقل */
.input-group-auth > .form-control {
   
    border-right: none;
}

/* زر العين (يسار) */
.input-group-auth > .password-toggle {
    border-radius: 16px 0 0 16px !important;
    border-right: none;
    cursor: pointer;
}

/* إزالة double border */
.input-group-auth > * + * {
    border-right: none;
}

/* focus */
.input-group-auth:focus-within .form-control,
.input-group-auth:focus-within .input-group-text {
    border-color: #0d6efd;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-check-input {
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
}

.forgot-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 700;
}

.forgot-link:hover {
    color: var(--brand-primary-dark);
    text-decoration: underline;
}

.login-btn {
    min-height: 56px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 14px 28px rgba(13, 110, 253, 0.18);
}

.login-btn:hover {
    box-shadow: 0 18px 34px rgba(13, 110, 253, 0.24);
}

.login-note {
    color: #94a3b8;
    font-size: 0.92rem;
}

.field-error {
    color: var(--brand-danger);
    font-size: 0.85rem;
    margin-top: 8px;
}

.login-info-side {
    min-height: 720px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, #0f172a 0%, #0b3b8c 48%, #0d6efd 100%);
    color: #fff;
    position: relative;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-info-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 18%),
        radial-gradient(circle at 78% 74%, rgba(255, 255, 255, 0.10), transparent 22%);
    pointer-events: none;
}

.login-info-side > * {
    position: relative;
    z-index: 1;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    width: max-content;
    backdrop-filter: blur(8px);
    font-weight: 700;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.15rem;
}

.info-title {
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 28px 0 16px;
}

.info-text {
    max-width: 480px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.9;
    font-size: 1.02rem;
}

.feature-list {
    margin-top: 32px;
}

.feature-item {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-item + .feature-item {
    margin-top: 14px;
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
}

.feature-item span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.93rem;
    line-height: 1.7;
}

.info-footer {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .login-form-side,
    .login-info-side {
        min-height: auto;
        padding: 32px 24px;
    }

    .info-title {
        font-size: 1.9rem;
    }

    .login-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 575.98px) {
    .login-page {
        padding: 18px 0;
    }

    .login-form-side,
    .login-info-side {
        padding: 24px 18px;
    }

    .input-group-auth > .input-group-text:first-child,
    .input-group-auth > .password-toggle,
    .input-group-auth > .form-control {
        min-height: 52px;
    }
}