/* =====================================================================
   Rabeh - login / sign up / reset password
   Split screen: brand panel + form card. One file for the three pages.
   ===================================================================== */
.rb-auth {
    --rb-red: #E33B3B; --rb-red-d: #c92f2f; --rb-dark: #1A0C0B; --rb-ink: #2a2222; --rb-muted: #7a7273;
    --rb-line: #e6e3e3; --rb-bg: #f6f4f4;
    background: var(--rb-bg); padding: 40px 16px 56px; min-height: 72vh;
    display: flex; align-items: center; justify-content: center; font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
}
.rb-auth * { box-sizing: border-box; }
.rb-auth-shell {
    width: 100%; max-width: 1040px; display: grid; grid-template-columns: 1fr 1.08fr;
    background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(26, 12, 11, .14);
}

/* ---------- brand panel ---------- */
.rb-auth-brand {
    position: relative; color: #fff; padding: 44px 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    background: linear-gradient(155deg, rgba(26,12,11,.94) 0%, rgba(58,31,34,.90) 55%, rgba(227,59,59,.78) 130%),
                url('/elrabeh_site/static/src/images/post1.webp') center / cover no-repeat;
}
.rb-auth-brand img.rb-auth-logo { height: 46px; width: auto; align-self: flex-start; }
.rb-auth-brand h2 { font-size: 30px; line-height: 1.35; font-weight: 800; margin: 0 0 12px; color: #fff; }
.rb-auth-brand h2 span { color: #ff8a8a; }
.rb-auth-brand p.rb-auth-lead { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.82); margin: 0; }
.rb-auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rb-auth-points li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.92); }
.rb-auth-points i {
    width: 38px; height: 38px; flex: none; border-radius: 11px; background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff;
}

/* ---------- form side ---------- */
.rb-auth-main { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; text-align: start; }
.rb-auth-title { font-size: 26px; font-weight: 800; color: var(--rb-dark); margin: 0 0 6px; }
.rb-auth-sub { font-size: 14px; color: var(--rb-muted); margin: 0 0 24px; line-height: 1.7; }
.rb-auth .alert { border-radius: 12px; font-size: 13.5px; padding: 11px 14px; border: 0; }

/* segmented control (email / phone, individual / company) */
.rb-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #f1eeee; border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.rb-seg button, .rb-seg label {
    border: 0; background: transparent; border-radius: 9px; padding: 9px 8px; font-size: 14px; font-weight: 700; color: var(--rb-muted);
    cursor: pointer; text-align: center; margin: 0; transition: background .2s, color .2s, box-shadow .2s;
    display: flex; align-items: center; justify-content: center; gap: 7px;
}
.rb-seg button.rb-on, .rb-seg input:checked + label { background: #fff; color: var(--rb-red); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.rb-seg input { position: absolute; opacity: 0; pointer-events: none; }

/* fields */
.rb-field { margin-bottom: 14px; }
.rb-field > label { display: block; font-size: 13px; font-weight: 700; color: var(--rb-ink); margin-bottom: 6px; }
.rb-input {
    display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; background: #fff;
    border: 1.5px solid var(--rb-line); border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
.rb-input:focus-within { border-color: var(--rb-red); box-shadow: 0 0 0 4px rgba(227,59,59,.10); }
.rb-input.rb-bad { border-color: #d64545; }
.rb-input > i { color: #9a9192; font-size: 16px; width: 18px; text-align: center; flex: none; }
.rb-input input {
    flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0 !important; box-shadow: none !important;
    background: transparent !important; font-size: 14.5px; color: var(--rb-dark); padding: 0;
}
.rb-input input::placeholder { color: #b3abac; }
.rb-input input[readonly] { color: var(--rb-muted); }
.rb-input .rb-eye { border: 0; background: transparent; color: #9a9192; padding: 6px; cursor: pointer; flex: none; }
.rb-input .rb-eye:hover { color: var(--rb-red); }
.rb-phone { display: flex; gap: 8px; direction: ltr; }
.rb-phone .rb-cc {
    flex: none; height: 50px; padding: 0 12px; border: 1.5px solid var(--rb-line); border-radius: 12px; background: #faf8f8;
    display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--rb-dark);
}
.rb-phone .rb-cc img { width: 22px; height: 15px; border-radius: 2px; object-fit: cover; }
.rb-phone label.rb-cc { position: relative; margin: 0; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.rb-phone label.rb-cc:focus-within { border-color: var(--rb-red); box-shadow: 0 0 0 4px rgba(227,59,59,.10); }
.rb-phone label.rb-cc > i { font-size: 13px; color: #9a9192; }
.rb-phone label.rb-cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rb-phone .rb-input { flex: 1; }
.rb-hint { font-size: 12px; color: var(--rb-muted); margin-top: 6px; }
.rb-hint.rb-err { color: #d64545; font-weight: 600; }
.rb-strength { display: flex; gap: 4px; margin-top: 8px; }
.rb-strength span { flex: 1; height: 4px; border-radius: 4px; background: #ece8e8; transition: background .2s; }
.rb-strength[data-level="1"] span:nth-child(-n+1) { background: #d64545; }
.rb-strength[data-level="2"] span:nth-child(-n+2) { background: #f0a020; }
.rb-strength[data-level="3"] span:nth-child(-n+3) { background: #2e9e5b; }

.rb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; font-size: 13px; }
.rb-row .form-check { margin: 0; display: flex; align-items: center; gap: 8px; padding: 0; }
.rb-row .form-check-input { margin: 0; float: none; width: 17px; height: 17px; border-radius: 5px; }
.rb-row .form-check-input:checked { background-color: var(--rb-red); border-color: var(--rb-red); }
.rb-row .form-check-label { font-weight: 600; color: var(--rb-ink); }
.rb-auth a.rb-link { color: var(--rb-red); font-weight: 700; text-decoration: none; }
.rb-auth a.rb-link:hover { text-decoration: underline; }

.rb-btn {
    width: 100%; height: 52px; border: 0; border-radius: 12px; background: var(--rb-red); color: #fff !important; font-size: 15.5px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(227,59,59,.26); transition: background .2s, transform .1s, box-shadow .2s;
}
.rb-btn:hover { background: var(--rb-red-d); }
.rb-btn:active { transform: translateY(1px); }
.rb-btn[disabled] { opacity: .75; cursor: default; box-shadow: none; }
.rb-btn.rb-ghost { background: #fff; color: var(--rb-dark) !important; border: 1.5px solid var(--rb-line); box-shadow: none; }
.rb-btn.rb-ghost:hover { border-color: var(--rb-dark); background: #fff; }

.rb-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; font-size: 12.5px; font-weight: 700; color: var(--rb-muted); }
.rb-or::before, .rb-or::after { content: ''; flex: 1; height: 1px; background: var(--rb-line); }
.rb-social { display: grid; gap: 10px; }
.rb-social a {
    height: 48px; border: 1.5px solid var(--rb-line); border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 14px; font-weight: 700; color: var(--rb-dark) !important; text-decoration: none !important; background: #fff; transition: border-color .2s, background .2s;
}
.rb-social a:hover { border-color: var(--rb-dark); background: #faf8f8; }
.rb-social a i { font-size: 19px; }
.rb-auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--rb-muted); font-weight: 600; }
.rb-auth-done { text-align: center; padding: 8px 0; }
.rb-auth-done .rb-ico { width: 68px; height: 68px; border-radius: 50%; background: #eaf7ef; color: #2e9e5b; display: inline-flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 14px; }

/* ---------- phones / tablets ---------- */
@media (max-width: 991px) {
    .rb-auth { padding: 20px 12px 36px; align-items: flex-start; }
    .rb-auth-shell { grid-template-columns: 1fr; max-width: 520px; border-radius: 18px; }
    .rb-auth-brand { padding: 22px 22px; gap: 10px; }
    .rb-auth-brand img.rb-auth-logo { height: 34px; }
    .rb-auth-brand h2 { font-size: 19px; margin: 0; }
    .rb-auth-brand p.rb-auth-lead, .rb-auth-points { display: none; }
    .rb-auth-main { padding: 26px 20px 28px; }
    .rb-auth-title { font-size: 22px; }
}
