/* Faqeeh i — sign in / sign up / password pages */
:root {
    --teal: #008897;
    --teal-700: #00616d;
    --deep: #073c46;
    --teal-50: #e8f4f5;
    --teal-25: #f4fafb;
    --gold: #e0a21b;
    --ink: #10252c;
    --muted: #5d6d74;
    --line: #dce8ea;
    --gold-50: #fdf5e1;
}

* { box-sizing: border-box; }

body.auth-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Cairo', system-ui, sans-serif;
    color: var(--ink);
    background:
        repeating-linear-gradient(135deg, rgba(0,136,151,.045) 0 2px, transparent 2px 16px),
        linear-gradient(180deg, #fff 0%, var(--teal-25) 100%);
    -webkit-font-smoothing: antialiased;
}

.auth {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login_form {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 0 34px 26px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(7,60,70,.06), 0 24px 48px -28px rgba(7,60,70,.32);
}

/* patterned header band with the logo sitting on its edge */
.auth-head {
    position: relative;
    margin: 0 -34px 54px;
    height: 104px;
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 2px, transparent 2px 16px),
        radial-gradient(120% 140% at 100% 0%, #0a97a5 0%, var(--teal-700) 60%, var(--deep) 100%);
}
.auth-head::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.auth-logo {
    position: absolute;
    left: 50%;
    bottom: -46px;
    transform: translateX(-50%);
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    box-shadow: 0 10px 24px -10px rgba(7,60,70,.5);
}
.auth-logo img { width: 100%; height: 100%; border-radius: 50%; display: block; }

.auth-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: var(--teal-25);
    border: 1px solid var(--line);
}
.auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 9px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    color: var(--muted);
    text-decoration: none;
}
.auth-tabs a:hover { color: var(--teal); }
.auth-tabs a.active { background: #fff; color: var(--deep); box-shadow: 0 1px 2px rgba(7,60,70,.08), 0 4px 10px -6px rgba(7,60,70,.25); }

.auth-icon {
    width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px;
    display: grid; place-items: center; font-size: 1.9rem;
    background: var(--gold-50, #fdf5e1); color: #c68a0b;
}
.auth-title { margin: 0; text-align: center; font-size: 1.45rem; font-weight: 800; color: var(--deep); line-height: 1.4; }
.auth-sub { margin: 6px auto 22px; text-align: center; color: var(--muted); font-size: .95rem; max-width: 30em; }

.google-btn {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}
.google-btn:hover { background: var(--teal-25); border-color: var(--teal); }
.google-btn img { width: 20px; height: 20px; }

.separator {
    position: relative;
    text-align: center;
    margin: 20px 0 18px;
    color: var(--muted);
    font-size: .85rem;
}
.separator span { position: relative; z-index: 1; background: #fff; padding: 0 12px; }
.separator::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 50%;
    height: 1px;
    background: var(--line);
}

.input_box { margin-bottom: 16px; }
.input_box label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--deep); }
.field { position: relative; }
.field > i {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--teal);
    pointer-events: none;
}
.field input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--teal-25);
    padding-inline: 46px 16px;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    outline: none;
}
.field input[dir="ltr"] { text-align: start; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; padding-left: 16px; padding-right: 46px; }
.field input:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(0,136,151,.12); }
.field input::placeholder { color: #93a3a8; }
.field:has(.pw-toggle) input { padding-inline-end: 48px; }
.pw-toggle {
    position: absolute;
    inset-inline-end: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 1.25rem;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.pw-toggle:hover { color: var(--teal); background: var(--teal-50); }

.password_title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.password_title a { font-size: .85rem; font-weight: 700; color: var(--teal); text-decoration: none; margin-bottom: 6px; }
.password_title a:hover { text-decoration: underline; }

.login_form button[type="submit"] {
    width: 100%;
    height: 52px;
    margin: 8px 0 6px;
    border: 0;
    border-radius: 12px;
    background: var(--teal);
    color: #fff;
    font: inherit;
    font-size: 1.02rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.login_form button[type="submit"]:hover { background: var(--teal-700); }
.login_form button[type="submit"].is-busy { opacity: .75; cursor: progress; }
.login_form button[type="submit"].is-busy::after {
    content: "";
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
    animation: auth-spin .8s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-back {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
    color: var(--muted); font-size: .9rem; text-decoration: none;
}
.auth-back:hover { color: var(--teal); }
[dir="ltr"] .auth-back .ph-arrow-right { transform: scaleX(-1); }
.auth-foot { text-align: center; }

.alert:empty { display: none; }

.login_form :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Brand side */
.auth-side {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 48px;
    text-align: center;
    color: #fff;
    background: radial-gradient(120% 90% at 100% 0%, #0a8f9c 0%, var(--teal-700) 55%, var(--deep) 100%);
}
.auth-side::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 18px);
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side img { width: 200px; height: 200px; border-radius: 50%; box-shadow: 0 0 0 8px rgba(255,255,255,.12); }
.auth-side h2 { margin: 0; font-size: 1.7rem; font-weight: 800; line-height: 1.5; max-width: 22em; text-wrap: balance; }
.auth-side p { margin: 0; opacity: .9; max-width: 30em; }
.auth-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.auth-pills > span {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-weight: 700; font-size: .88rem;
}
.auth-pills i { color: var(--gold); }

@media (max-width: 820px) {
    .auth { grid-template-columns: 1fr; }
    .auth-side { display: none; }
}
@media (max-width: 480px) {
    .login_form { padding: 0 20px 22px; border-radius: 20px; }
    .auth-head { margin: 0 -20px 54px; height: 92px; }
}

/* Phosphor duotone stacks two glyph layers; keep them in LTR flow so they overlap under RTL */
.ph-duotone { direction: ltr; }
