/* ==========================================================================
   Axentroo HR — صفحات الدخول والتسجيل (login.php / signup.php)
   نفس هوية الصفحة الرئيسية، ملف مستقل لا يعتمد على style.css
   ========================================================================== */

:root {
    --au-navy-900: #061430;
    --au-navy-800: #0b2152;
    --au-navy-700: #123173;
    --au-blue: #1559c4;
    --au-blue-2: #2a76e0;
    --au-blue-100: #e3eefc;
    --au-blue-50: #f2f7fe;
    --au-teal: #1fc3bb;
    --au-orange: #ff6b4a;
    --au-ink: #0f172a;
    --au-ink-2: #334155;
    --au-muted: #64748b;
    --au-line: #e2e8f2;
    --au-danger: #d93a3f;
    --au-success: #12a150;
}

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

body.au {
    margin: 0;
    min-height: 100vh;
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--au-ink);
    background: #f4f7fc;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}
.au a { color: var(--au-blue); text-decoration: none; }
.au a:hover { text-decoration: underline; }
.au h1, .au h2, .au h3 { margin: 0; line-height: 1.3; font-weight: 800; }
.au p { margin: 0; }
.au ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--au-blue-2); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout ---------- */
.au-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    min-height: 100vh;
}
.au-main {
    display: flex;
    flex-direction: column;
    padding: 28px clamp(20px, 5vw, 64px);
}
.au-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.au-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--au-navy-800) !important; text-decoration: none !important; }
.au-brand img { width: 44px; height: 44px; object-fit: contain; }
.au-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.au-brand strong { font-size: 1.1rem; font-weight: 800; }
.au-brand small { font-size: .74rem; color: var(--au-muted); font-weight: 600; }
.au-back { font-size: .9rem; font-weight: 700; color: var(--au-ink-2) !important; display: inline-flex; align-items: center; gap: 6px; }

.au-card {
    width: 100%;
    max-width: 460px;
    margin: auto;
    padding: 40px 0 24px;
}
.au-card--wide { max-width: 620px; }
.au-card h1 { font-size: clamp(1.6rem, 3vw, 2rem); color: var(--au-navy-800); }
.au-card .au-sub { color: var(--au-muted); margin-top: 6px; margin-bottom: 26px; }

/* ---------- Plan pill (signup) ---------- */
.au-plan {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: var(--au-blue-50);
    border: 1px solid #d3e2fb;
}
.au-plan i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #fff; color: var(--au-teal); flex: 0 0 auto; }
.au-plan b { display: block; color: var(--au-navy-800); font-size: .95rem; }
.au-plan small { color: var(--au-muted); font-size: .8rem; font-weight: 600; }
.au-plan .au-chip { margin-inline-start: auto; }
.au-chip { padding: .2rem .65rem; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: .75rem; font-weight: 800; white-space: nowrap; }

/* ---------- Forms ---------- */
.au-form { display: grid; gap: 16px; }
.au-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.au-field label {
    display: block;
    margin-bottom: 6px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--au-ink-2);
}
.au-field label .req { color: var(--au-danger); }
.au-input { position: relative; }
.au-input > i {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .9rem;
    pointer-events: none;
}
.au-input input {
    width: 100%;
    height: 50px;
    padding: 0 42px 0 14px;
    border: 1.5px solid var(--au-line);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-size: .95rem;
    color: var(--au-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.au-input input::placeholder { color: #a0aec0; }
.au-input input:hover { border-color: #cbd5e1; }
.au-input input:focus { outline: none; border-color: var(--au-blue-2); box-shadow: 0 0 0 4px rgba(42, 118, 224, .14); }
.au-input input[dir="ltr"] { text-align: right; }
.au-input .au-eye {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--au-muted);
    cursor: pointer;
}
.au-input .au-eye:hover { background: var(--au-blue-50); color: var(--au-blue); }
.au-input input.has-eye { padding-left: 48px; }
.au-hint { display: block; margin-top: 5px; font-size: .78rem; color: var(--au-muted); }

.au-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .9rem; }
.au-check { display: inline-flex; align-items: flex-start; gap: 8px; font-size: .88rem; color: var(--au-ink-2); cursor: pointer; }
.au-check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--au-blue); flex: 0 0 auto; }

.au-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--au-blue), var(--au-blue-2));
    color: #fff;
    font: inherit;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(21, 89, 196, .28);
    transition: transform .15s ease, box-shadow .15s ease;
}
.au-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(21, 89, 196, .34); }
.au-btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.au-btn--ghost {
    background: #fff;
    color: var(--au-navy-800);
    border: 1.5px solid var(--au-line);
    box-shadow: none;
}
.au-btn--ghost:hover { border-color: var(--au-blue-2); box-shadow: none; text-decoration: none; }

.au-divider { display: flex; align-items: center; gap: 12px; color: var(--au-muted); font-size: .82rem; margin: 6px 0; }
.au-divider::before, .au-divider::after { content: ""; flex: 1; height: 1px; background: var(--au-line); }

.au-alert {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    border: 1px solid;
}
.au-alert i { margin-top: 4px; }
.au-alert ul { display: grid; gap: 2px; }
.au-alert--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.au-alert--success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.au-alert--info { background: var(--au-blue-50); border-color: #d3e2fb; color: var(--au-navy-800); }

.au-foot { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--au-muted); }
.au-foot a { color: var(--au-muted); }

/* ---------- Side panel ---------- */
.au-side {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 56px clamp(28px, 5vw, 72px);
    color: #fff;
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(42, 118, 224, .55), transparent 60%),
        radial-gradient(600px 380px at 0% 100%, rgba(31, 195, 187, .25), transparent 60%),
        linear-gradient(160deg, var(--au-navy-900), var(--au-navy-800) 55%, var(--au-navy-700));
}
.au-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse at 70% 20%, #000 25%, transparent 75%);
    pointer-events: none;
}
.au-side > * { position: relative; }
.au-side__logo { width: 76px; height: 76px; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
.au-side h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.au-side h2 span {
    background: linear-gradient(90deg, #4fe0d6, var(--au-teal) 60%, var(--au-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.au-side > p { color: #c3d0ea; font-size: 1.05rem; max-width: 30rem; }
.au-points { display: grid; gap: 12px; max-width: 30rem; }
.au-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    font-weight: 600;
    color: #e2e9f8;
}
.au-points i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(31, 195, 187, .16); color: #5ee3da; flex: 0 0 auto; }
.au-points small { display: block; color: #9fb2d6; font-weight: 500; font-size: .82rem; }
.au-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.au-badges span { padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .82rem; font-weight: 700; color: #dbe6ff; }
.au-badges i { color: #5ee3da; margin-inline-end: 4px; }

/* ---------- Success state (signup) ---------- */
.au-done { text-align: center; }
.au-done__icon { width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 22px; background: #dcfce7; color: var(--au-success); font-size: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .au-shell { grid-template-columns: 1fr; }
    .au-side { display: none; }
    .au-main { min-height: 100vh; }
    body.au { background: #fff; }
}
@media (max-width: 560px) {
    .au-main { padding: 18px 16px; }
    .au-brand small { display: none; }
    .au-card { padding-top: 28px; }
    .au-grid-2 { grid-template-columns: 1fr; }
}
