@import 'components.css';

:root {
  --bg: #f5f9fb;
  --surface: #ffffff;
  --surface-soft: #f2f8fa;
  --line: #d8e6eb;
  --line-strong: #bfd5dc;
  --text: #0f2232;
  --text-soft: #5e7389;
  --text-muted: #8ca1b4;
  --accent: #17b8b3;
  --accent-deep: #0f8e89;
  --accent-ink: #0c6f6b;
  --success: #1bbf87;
  --warning: #f0a543;
  --danger: #eb676f;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-soft: 0 6px 22px rgba(16, 38, 58, 0.08);
  --shadow-card: 0 18px 45px rgba(17, 49, 73, 0.08);
  --content-width: 1180px;
  --font-main: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 5%, rgba(23, 184, 179, 0.14), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(15, 142, 137, 0.12), transparent 24%),
    linear-gradient(180deg, #f9fcfe 0%, #f3f8fb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  position: relative;
}

body[data-page="login"] .page-shell {
  display: grid;
  place-items: center;
  padding: 20px 0;
}

body[data-page="rdg"] .page-shell {
  visibility: hidden;
}

body[data-page="rdg"].is-ready .page-shell {
  visibility: visible;
}

.content-wrap {
  width: min(calc(100% - 34px), var(--content-width));
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) 0 clamp(28px, 4vw, 50px);
}

body[data-page="login"] .content-wrap {
  width: min(calc(100% - 22px), 560px);
  padding: 0;
}

.view {
  display: grid;
  gap: 22px;
  animation: rise-in 240ms ease;
}

body[data-page="login"] .view {
  gap: 0;
}

ul,
ol {
  list-style: none;
  padding-left: 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}