/* صفحة الدخول: نفس هدوء الواجهة — كارت واحد في النص */

body { overflow: auto; }

.page { position: relative; z-index: 1; min-height: 100%; display: grid; place-items: center; padding: var(--space-6) var(--space-4); }

.card { width: 100%; max-width: 400px; padding: var(--space-8) var(--space-6) var(--space-6); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: pop-in 420ms var(--ease) both; }

.head { display: grid; justify-items: center; gap: var(--space-1); margin-bottom: var(--space-6); text-align: center; }
.head .orb { margin-bottom: var(--space-4); }
.head h1 { margin: 0; font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; line-height: 1.3; }
.head p { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }

.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; margin-bottom: var(--space-5); border-radius: var(--radius-full); background: var(--surface-sunken); }
.tabs::before { content: ""; position: absolute; inset-block: 3px; inset-inline-start: 3px; width: calc(50% - 3px); border-radius: var(--radius-full); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform var(--transition-normal); }
.tabs:has(#tabSignup[aria-selected="true"])::before { transform: translateX(-100%); }
.tab { position: relative; z-index: 1; height: 34px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--text-muted); font-size: var(--text-sm); transition: color var(--transition-fast); }
.tab[aria-selected="true"] { color: var(--text-primary); font-weight: 500; }

.providers { display: grid; gap: var(--space-2); }
.provider { display: flex; align-items: center; justify-content: center; gap: var(--space-2); height: 42px; border: 0; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); color: var(--text-primary); font-size: var(--text-sm); transition: box-shadow var(--transition-fast); }
.provider:hover { box-shadow: var(--shadow-md), 0 0 0 1px var(--border-strong); }
.provider svg { width: 18px; height: 18px; }

.divider { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-5) 0; font-size: var(--text-xs); color: var(--text-faint); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.row { display: grid; gap: 6px; margin-bottom: var(--space-3); }
.row > span { font-size: var(--text-xs); color: var(--text-muted); }
.row input {
  height: 44px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border-strong);
  color: var(--text-primary);
  font-size: var(--text-md);
  transition: box-shadow var(--transition-fast);
}
.row input::placeholder { color: var(--text-faint); }
.row input:focus { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--focus-ring); }
.row input.code { text-align: center; letter-spacing: 0.5em; font-family: var(--font-mono); font-size: var(--text-xl); direction: ltr; }

.submit {
  width: 100%;
  height: 44px;
  margin-top: var(--space-2);
  border: 0;
  border-radius: var(--radius-md);
  color: var(--on-accent);
  font-size: var(--text-md);
  font-weight: 500;
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 10px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.submit:active:not(:disabled) { transform: scale(0.985); }
.submit:disabled { opacity: 0.6; cursor: default; }

.link { padding: 2px 0; border: 0; background: none; color: var(--accent-ink); font-size: var(--text-sm); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.links { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-4); }

.hint { margin: 0 0 var(--space-4); font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.8; }

.error, .notice { margin-top: var(--space-4); padding: var(--space-3); border-radius: var(--radius-md); font-size: var(--text-sm); line-height: 1.7; animation: rise-in 300ms var(--ease) both; }
.error { color: var(--danger); background: var(--danger-soft); }
.notice { color: var(--success); background: rgb(47 138 91 / 0.08); }

.foot { margin: var(--space-5) 0 0; text-align: center; font-size: var(--text-xs); color: var(--text-faint); }
