:root {
    --orange: #F58220;
    --orange-dark: #D96E10;
    --orange-soft: #FFF3E6;
    --navy: #111111;
    --navy-2: #2A2A2A;
    --ink: #111111;
    --muted: #5C5C5C;
    --line: #E8E8E8;
    --bg: #F7F7F7;
    --card: #ffffff;
    --radius: 1.25rem;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.06);
    --mk-font: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: var(--mk-font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: inherit; }
button, input, select, textarea { font-family: inherit; }
:focus-visible {
    outline: 3px solid rgba(245, 130, 32, 0.55);
    outline-offset: 3px;
}

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
}
.auth--signup { grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); }

.auth-form-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.25rem 2.5rem;
}

.auth-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.auth-logo {
    display: inline-flex;
    align-items: center;
}
.auth-logo img { height: 42px; width: auto; object-fit: contain; }
.auth-back {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}
.auth-back:hover { color: var(--orange-dark); }

.auth-card {
    width: min(460px, 100%);
    margin-inline: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    padding: 1.75rem 1.4rem 1.6rem;
}
.auth--signup .auth-card { width: min(500px, 100%); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--orange-soft);
    color: var(--orange-dark);
    border: 1px solid rgba(245,130,32,.22);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    margin-bottom: 0.85rem;
}
.auth-card h1 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.35;
    letter-spacing: -0.02em;
}
.auth-card h1 span { color: var(--orange); }
.auth-lead {
    margin: 0 0 1.35rem;
    color: var(--muted);
    font-size: 0.98rem;
}

.field { margin-bottom: 1rem; }
.field label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--navy);
}
.field input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 0.95rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus {
    outline: none;
    border-color: rgba(245,130,32,.55);
    box-shadow: 0 0 0 4px rgba(245,130,32,.14);
}
.field input::placeholder { color: #9a9a9a; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0.85rem 1.4rem;
    border-radius: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary {
    width: 100%;
    background: linear-gradient(180deg, #FF9440 0%, var(--orange) 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(245, 130, 32, 0.32);
    font-size: 1.02rem;
}
.btn--primary:hover { transform: translateY(-2px); background: var(--orange-dark); }

.alert {
    border-radius: 0.9rem;
    padding: 0.75rem 0.95rem;
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
    font-weight: 700;
}
.alert-danger { background: #FEF2F2; color: #B42318; border: 1px solid #FECACA; }
.alert-success { background: #ECFDF3; color: #067647; border: 1px solid #ABEFC6; }


.auth-switch {
    text-align: center;
    margin-top: 1.15rem;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.92rem;
}
.auth-switch a {
    color: var(--orange-dark);
    text-decoration: none;
    margin-right: 0.25rem;
}
.auth-switch a:hover { text-decoration: underline; }

.auth-brand {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 15%, rgba(245,130,32,.22), transparent 34%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-brand::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(245,130,32,.16);
    filter: blur(20px);
    left: -80px;
    bottom: -90px;
    pointer-events: none;
}
.auth-brand__inner { position: relative; z-index: 1; max-width: 420px; }
.auth-brand h2 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.35;
    font-weight: 800;
}
.auth-brand p {
    margin: 0 0 1.6rem;
    color: rgba(255,255,255,.78);
    font-size: 1rem;
}
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.auth-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 1rem;
    padding: 0.85rem 0.95rem;
}
.auth-points strong { display: block; font-size: 0.95rem; }
.auth-points span { color: rgba(255,255,255,.72); font-size: 0.86rem; }
.auth-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--orange-soft);
    color: var(--orange-dark);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.auth-ico svg { width: 18px; height: 18px; }

.auth-foot {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.82rem;
    color: var(--muted);
}
.auth-foot a { color: var(--navy); font-weight: 800; text-decoration: none; }
.auth-foot a:hover { color: var(--orange); }

@media (max-width: 960px) {
    .auth, .auth--signup { grid-template-columns: 1fr; }
    .auth-brand { order: -1; padding: 1.5rem 1.25rem 1.7rem; min-height: auto; }
    .auth-brand h2 { font-size: 1.35rem; }
    .auth-brand p { margin-bottom: 1rem; }
    .auth-points { grid-template-columns: 1fr; }
    .auth-form-col { padding-top: 1.25rem; }
}
@media (max-width: 560px) {
    .auth-card { padding: 1.25rem 1rem 1.2rem; border-radius: 1.15rem; }
    .auth-points li:nth-child(n+3) { display: none; }
}
