* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--app-font-ui);
  font-size: var(--type-level-4);
  font-weight: 400;
  line-height: var(--type-line-4);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  background: linear-gradient(180deg, #f7fcff 0%, #f7faf8 52%, #fffaf1 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 100, 214, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 184, 199, 0.026) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.5;
}
a { color: inherit; text-decoration: none; }
button,
input,
select,
textarea {
  font-family: var(--app-font-macos);
}
.app-shell, .auth-view {
  position: relative;
  z-index: 1;
}
.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px;
}
.app-shell {
  width: min(1720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 32px;
}
.panel {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  overflow: hidden;
}
.auth-card {
  width: min(460px, 100%);
  padding: 34px;
}
.brand-logo {
  width: 168px;
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 16px 24px rgba(17, 27, 67, 0.14));
}
.eyebrow, .section-title span, .status-label {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2 {
  color: var(--navy);
  letter-spacing: 0;
}
h1 {
  margin: 10px 0 12px;
  font-size: 34px;
  line-height: 1.08;
}
h2 {
  margin: 8px 0 0;
  font-size: 24px;
}
p {
  color: var(--muted);
  line-height: 1.7;
}
.auth-form, .upload-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(238, 173, 53, 0.72);
  box-shadow: 0 0 0 4px rgba(238, 173, 53, 0.12);
}
textarea::placeholder {
  color: #98a2b3;
}
input[type="file"] {
  min-height: 46px;
  cursor: pointer;
}
button, .btn {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(238, 127, 34, 0.16);
}
.btn.secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(238, 173, 53, 0.24);
}
.btn.primary-blue, button.primary-blue {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
  box-shadow: 0 14px 30px rgba(49, 88, 201, 0.18);
}
.btn.big, button.big {
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 900;
}
.btn.ghost, button.ghost {
  color: var(--navy);
  background: transparent;
  border: 1px solid rgba(49, 88, 201, 0.18);
  box-shadow: none;
}
.warn {
  color: #b54708;
  font-size: 13px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
