/* ============================================================================
   Coaching & Mentoring — premium LIGHT login (matches the landing aesthetic).
   Split layout: left = "how it works" workflow; right = sign-in form.
   Aubergine + champagne accents on warm ivory. RTL-safe (logical properties).
   ========================================================================== */
.cch-login {
    --a: #6D28D9; --a2: #4C1D95; --g: #C9A227; --g2: #A9861C;
    --bg: #FAF7F1; --ink: #221A2C; --muted: #6C6478; --line: #ECE7DE; --surface: #fff;
    --tint-a: #F3EEFC; --tint-g: #FBF3DD;
    margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased; position: relative; overflow-x: hidden;
}
html[lang="ar"] .cch-login { font-family: 'Dubai', 'Inter', sans-serif; }
.cch-login::before, .cch-login::after { content: ""; position: fixed; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; opacity: .55; }
.cch-login::before { width: 44vw; height: 44vw; top: -16vw; inset-inline-end: -12vw; background: radial-gradient(circle, rgba(201,162,39,.22), transparent 70%); }
.cch-login::after { width: 40vw; height: 40vw; bottom: -16vw; inset-inline-start: -12vw; background: radial-gradient(circle, rgba(109,40,217,.14), transparent 70%); }

.cch-login-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }

/* ---- Left: how-it-works hero ---- */
.cch-login-hero { padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 1.75rem; }
.cch-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cch-hero-brand { display: flex; align-items: center; gap: .8rem; }
.cch-hero-brand .mark { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--a), var(--a2)); color: #fff; font-size: 1.3rem; box-shadow: 0 10px 24px -8px rgba(109,40,217,.5); overflow: hidden; }
.cch-hero-brand .mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cch-hero-brand .wordmark strong { display: block; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.cch-hero-brand .wordmark small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }

.cch-lang { display: inline-flex; align-items: center; gap: .1rem; background: rgba(255,255,255,.65); border: 1px solid var(--line); border-radius: 999px; padding: .18rem; }
.cch-lang button { border: none; background: transparent; color: var(--muted); font: inherit; font-size: .76rem; font-weight: 600; padding: .26rem .58rem; border-radius: 999px; cursor: pointer; }
.cch-lang button.on { background: #fff; color: var(--a); box-shadow: 0 1px 3px rgba(34,26,44,.1); }

.cch-hero-tag .eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--g2); }
.cch-hero-tag .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 4px var(--tint-g); }
.cch-hero-tag h1 { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.1; letter-spacing: -.015em; margin: 1rem 0 0; max-width: 18ch; }
html[lang="ar"] .cch-hero-tag h1 { font-family: 'Dubai', serif; }
.cch-hero-tag p { color: var(--muted); font-size: 1rem; line-height: 1.6; margin-top: 1rem; max-width: 44ch; }

/* Vertical workflow timeline */
.cch-flow { display: flex; flex-direction: column; margin-top: auto; }
.cch-flow-step { display: flex; align-items: flex-start; gap: 1rem; padding: .55rem 0; position: relative; }
.cch-flow-step:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 21px; top: 46px; height: calc(100% - 30px); width: 2px; background: repeating-linear-gradient(var(--g) 0 5px, transparent 5px 11px); opacity: .5; }
.cch-flow-num { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--tint-a); color: var(--a); font-size: 1.25rem; z-index: 1; }
.cch-flow-step:last-child .cch-flow-num { background: var(--tint-g); color: var(--g2); }
.cch-flow-txt h5 { font-weight: 700; font-size: .95rem; margin: .2rem 0 0; }
.cch-flow-txt p { color: var(--muted); font-size: .84rem; margin-top: .15rem; }

/* ---- Right: sign-in form ---- */
.cch-login-panel { display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3rem); background: rgba(255,255,255,.55); border-inline-start: 1px solid var(--line); }
.cch-login-card { width: 100%; max-width: 400px; }
.cch-login-mini-brand { display: none; align-items: center; gap: .7rem; margin-bottom: 1.6rem; font-weight: 700; }
.cch-login-mini-brand .mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--a), var(--a2)); color: #fff; font-size: 1.15rem; }
.cch-login-title { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 1.9rem; letter-spacing: -.01em; }
html[lang="ar"] .cch-login-title { font-family: 'Dubai', serif; }
.cch-login-sub { color: var(--muted); margin: .4rem 0 1.8rem; }

.cch-field { margin-bottom: 1.1rem; }
.cch-field > label { display: block; font-size: .78rem; font-weight: 600; margin-bottom: .4rem; }
.cch-field .wrap { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 .9rem; transition: border-color .15s ease, box-shadow .15s ease; }
.cch-field .wrap:focus-within { border-color: var(--a); box-shadow: 0 0 0 3px rgba(109,40,217,.12); }
.cch-field .wrap > i { color: var(--muted); font-size: 1.1rem; }
.cch-field input { flex: 1; border: none; outline: none; background: transparent; padding: .8rem .7rem; font: inherit; color: var(--ink); }
.cch-field .toggle-password { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: .3rem; }

.cch-login-row { display: flex; align-items: center; justify-content: space-between; margin: 0 0 1.4rem; font-size: .85rem; }
.cch-remember { display: flex; align-items: center; gap: .45rem; color: var(--muted); cursor: pointer; }
.cch-forgot { color: var(--a); text-decoration: none; font-weight: 600; }
.cch-forgot:hover { text-decoration: underline; }

.cch-login-btn { position: relative; width: 100%; border: none; cursor: pointer; color: #fff; font: inherit; font-weight: 600; font-size: 1rem; padding: .9rem; border-radius: 13px; background: linear-gradient(135deg, var(--a), var(--a2)); box-shadow: 0 16px 32px -12px rgba(109,40,217,.55); transition: transform .15s ease, box-shadow .15s ease; display: flex; align-items: center; justify-content: center; gap: .5rem; }
.cch-login-btn:hover { transform: translateY(-1px); box-shadow: 0 22px 38px -12px rgba(109,40,217,.6); }
.cch-login-btn .spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: cchspin .7s linear infinite; }
.cch-login-btn.is-loading .spin { display: inline-block; }
.cch-login-btn.is-loading .label { display: none; }
@keyframes cchspin { to { transform: rotate(360deg); } }

.cch-login-error { display: none; margin-top: 1rem; background: #FDECEC; color: #B42318; border: 1px solid #F5C6C2; border-radius: 10px; padding: .7rem .9rem; font-size: .85rem; }
.cch-login-error.is-shown { display: block; }

.cch-login-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; color: var(--muted); font-size: .78rem; }
.cch-login-foot .pill { background: var(--tint-a); color: var(--a); padding: .28rem .65rem; border-radius: 999px; font-weight: 600; font-size: .7rem; display: inline-flex; align-items: center; gap: .35rem; }

@media (max-width: 900px) {
    .cch-login-shell { grid-template-columns: 1fr; }
    .cch-login-hero { display: none; }
    .cch-login-mini-brand { display: flex; }
    .cch-login-panel { border: none; background: transparent; min-height: 100vh; }
}
@media (prefers-reduced-motion: reduce) { .cch-login-btn .spin { animation: none; } }
