/* Aligné visuellement sur packages/auth-ui (AuthShell + AuthPanel static). */

:root {
  --rc-bg: #0c0a09;
  --rc-gold-soft: rgba(252, 211, 77, 0.2);
  --rc-card-border: rgba(255, 255, 255, 0.1);
  --rc-card-bg: rgba(0, 0, 0, 0.4);
  --rc-text: #fafafa;
  --rc-muted: rgba(255, 255, 255, 0.65);
  --rc-label: rgba(255, 255, 255, 0.6);
  --rc-input-border: rgba(255, 255, 255, 0.15);
  --rc-input-bg: rgba(255, 255, 255, 0.05);
  --rc-focus-ring: rgba(255, 255, 255, 0.2);
  --rc-error: #fca5a5;
  --rc-success: #86efac;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--rc-text);
  background-color: var(--rc-bg);
  background-image:
    radial-gradient(ellipse 120vh 55vh at 50% -18%, var(--rc-gold-soft), transparent 58%),
    linear-gradient(180deg, rgba(138, 98, 39, 0.35) 0%, rgba(52, 29, 8, 0.52) 45%, rgba(12, 10, 9, 0.92) 100%);
}

.rc-shell {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
}

.rc-shell::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 120vh;
  height: 55vh;
  transform: translateX(-50%);
  border-bottom-left-radius: 50%;
  border-bottom-right-radius: 50%;
  background: rgba(252, 211, 77, 0.14);
  filter: blur(95px);
  pointer-events: none;
}

.rc-shell::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 95vh;
  height: 72vh;
  transform: translateX(-50%);
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  background: rgba(217, 119, 6, 0.12);
  filter: blur(85px);
  pointer-events: none;
}

.rc-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 2.5rem;
}

.rc-brand {
  margin-bottom: 2.5rem;
  text-align: center;
}

.rc-brand-logoline {
  display: block;
  margin: 0 auto;
  width: min(100%, 22rem);
  height: auto;
  max-height: 5rem;
  object-fit: contain;
}

@media (min-width: 640px) {
  .rc-brand-logoline {
    width: min(100%, 28rem);
    max-height: 6.25rem;
  }
}

.rc-tagline {
  margin-top: 1rem;
  max-width: 26rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--rc-muted);
}

.rc-card {
  width: 100%;
  max-width: 28rem;
  border-radius: 1rem;
  border: 1px solid var(--rc-card-border);
  background: var(--rc-card-bg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1.5rem;
}

.rc-card h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.rc-card .rc-lead {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--rc-muted);
}

.rc-field {
  margin-top: 1.25rem;
}

.rc-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--rc-label);
}

.rc-input-wrap {
  position: relative;
  margin-top: 0.35rem;
}

.rc-input-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.rc-input {
  width: 100%;
  height: 2.5rem;
  padding: 0 0.75rem 0 2.35rem;
  border-radius: 0.5rem;
  border: 1px solid var(--rc-input-border);
  background: var(--rc-input-bg);
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.rc-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.rc-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 2px var(--rc-focus-ring);
}

.rc-input[aria-invalid="true"] {
  border-color: rgba(248, 113, 113, 0.65);
  background: rgba(69, 10, 10, 0.25);
}

.rc-field-error {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--rc-error);
}

.rc-consent-block {
  margin-top: 1rem;
}

.rc-consent-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.rc-consent-row input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  accent-color: #c9a962;
  cursor: pointer;
}

.rc-consent-label {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--rc-muted);
  cursor: pointer;
  font-weight: 400;
}

.rc-consent-row input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(251, 191, 36, 0.45);
  outline-offset: 2px;
}

.rc-consent-row input[type="checkbox"][aria-invalid="true"] {
  outline: 2px solid rgba(248, 113, 113, 0.75);
  outline-offset: 2px;
}

.rc-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rc-btn {
  margin-top: 1.25rem;
  width: 100%;
  height: 2.5rem;
  border: none;
  border-radius: 0.5rem;
  background: #fff;
  color: #000;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.rc-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.92);
}

.rc-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.rc-banner {
  margin-top: 1rem;
  min-height: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.rc-banner[data-kind="error"] {
  color: var(--rc-error);
}

.rc-banner[data-kind="success"] {
  color: var(--rc-success);
}

.rc-banner[data-kind=""] {
  color: transparent;
}

.rc-foot {
  margin-top: 1.25rem;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}
