/* صفحة الدخول / onboarding — منفصلة عن app-theme */
@import url("fonts.css");

:root {
  --entry-font-family: "IBM Plex Sans", "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif;
  --entry-bg: #ffffff;
  --entry-navy: #1e3a5f;
  --entry-muted: #78909c;
  --entry-cyan: #4dd0e1;
  --entry-cyan-hover: #26c6da;
  --entry-dot: #e0e0e0;
  --entry-dot-active: #546e7a;
}

html.entry-root {
  height: 100%;
  min-height: 100dvh;
}

body.entry-body {
  margin: 0;
  font-family: var(--entry-font-family);
  background: var(--entry-bg);
  color: var(--entry-navy);
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

.entry-shell {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background: var(--entry-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.entry-column {
  width: 100%;
  max-width: 20rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.entry-illustration {
  width: min(100%, 260px);
  height: auto;
  margin: 0 0 1.75rem;
}

.entry-title {
  font-size: clamp(1.35rem, 4.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.85rem;
  color: var(--entry-navy);
}

.entry-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--entry-muted);
  margin: 0 0 1.5rem;
  max-width: 19rem;
}

.entry-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 1.75rem;
}

.entry-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--entry-dot);
}
.entry-dots span.is-active {
  background: var(--entry-dot-active);
  transform: scale(1.15);
}

.entry-body button,
.entry-body input,
.entry-body select,
.entry-body textarea {
  font-family: var(--entry-font-family);
}

.entry-cta {
  display: block;
  width: 100%;
  max-width: 18rem;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 14px;
  background: var(--entry-cyan);
  color: #fff;
  font-family: var(--entry-font-family);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease;
}
.entry-cta:hover {
  background: var(--entry-cyan-hover);
  color: #fff;
}

.entry-links {
  margin-top: 1.15rem;
  font-size: 0.85rem;
  line-height: 1.7;
}
.entry-links a {
  color: #5b4fcf;
  text-decoration: none;
}
.entry-links a:hover {
  text-decoration: underline;
}
.entry-links .sep {
  margin: 0 0.35rem;
  color: var(--entry-muted);
}

.user-pick-wrap {
  max-width: 22rem;
}
.user-pick-title {
  margin-bottom: 0.5rem;
}
.user-pick-hint {
  margin-bottom: 1.25rem;
}
.user-pick-form {
  width: 100%;
}
.user-pick-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  text-align: right;
  width: 100%;
}
.user-pick-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.98rem;
  color: var(--entry-navy);
  background: #fafafa;
  transition: border-color 0.15s, background 0.15s;
}
.user-pick-item:hover {
  border-color: var(--entry-cyan);
  background: #f5fcfd;
}
.user-pick-item input {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--entry-cyan);
}
.user-pick-form .entry-cta {
  max-width: 100%;
}
.user-pick-submit {
  margin-top: 0.25rem;
}
