/* ../../../../../../Views/Site/site.css */
:root {
  color-scheme: light dark;
  --bar-h: 56px;
  --bg: #f4f6fb;
  --bar-bg: #ffffff;
  --card-bg: #ffffff;
  --card-border: #e3e8f0;
  --text: #1a2233;
  --text-muted: #64748b;
  --input-bg: #f8fafc;
  --input-border: #d5dced;
  --input-border-focus: #4f7cff;
  --input-text: #1a2233;
  --accent: #4f7cff;
  --accent-hover: #3d68e6;
  --accent-text: #ffffff;
  --shadow: 0 12px 40px rgba(30, 45, 90, 0.10);
  --success-bg: #e7f8ef;
  --success-text: #1a7f4b;
  --error-bg: #fdeaea;
  --error-text: #c0392b;
  --icon-bg: #eef3ff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --bar-bg: #182031;
    --card-bg: #1a2130;
    --card-border: #2a3446;
    --text: #eef2f9;
    --text-muted: #94a3b8;
    --input-bg: #131a27;
    --input-border: #313c50;
    --input-border-focus: #6b93ff;
    --input-text: #eef2f9;
    --accent: #5b84ff;
    --accent-hover: #6f95ff;
    --accent-text: #ffffff;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    --success-bg: #12331f;
    --success-text: #4ade80;
    --error-bg: #3a1a1a;
    --error-text: #f87171;
    --icon-bg: #202b40;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
  margin: 0;
}
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 40px 24px;
  -webkit-font-smoothing: antialiased;
}
.page {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}
.page.narrow {
  max-width: 900px;
}
.card {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 36px;
  animation: rise 0.4s ease;
}
.page .card {
  max-width: none;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.stack section.card form {
  max-width: 420px;
}
@media (min-width: 1700px) {
  .page:has(.stack) {
    max-width: 1640px;
  }
  .stack {
    flex-direction: row;
    align-items: flex-start;
  }
  .stack main.card {
    flex: 1;
    min-width: 0;
  }
  .stack section.card {
    flex: none;
    width: 460px;
  }
}
h1 {
  font-size: 1.5rem;
  font-weight: 650;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 30px;
  line-height: 1.5;
}
.muted {
  flex: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.muted:hover {
  color: var(--text);
  text-decoration: underline;
}
.field {
  margin-bottom: 20px;
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  font-size: 0.95rem;
  color: var(--input-text);
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea {
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--input-border-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--input-border-focus) 22%, transparent);
}
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px 24px;
}
.grid .field {
  margin: 0;
}
.required {
  color: var(--error-text);
}
button {
  font-weight: 650;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
button:active {
  transform: scale(0.99);
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
button.submit {
  width: 100%;
  padding: 14px;
  font-size: 0.975rem;
  color: var(--accent-text);
  background: var(--accent);
  border: none;
  margin-top: 6px;
}
button.submit:hover:not(:disabled) {
  background: var(--accent-hover);
}
button.secondary {
  padding: 13px 22px;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--input-border);
}
button.secondary:hover:not(:disabled) {
  border-color: var(--input-border-focus);
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
.actions .submit {
  width: auto;
  margin-top: 0;
  padding: 13px 22px;
  font-size: 0.95rem;
}
.message {
  display: none;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.message.success {
  display: block;
  background: var(--success-bg);
  color: var(--success-text);
}
.message.error {
  display: block;
  background: var(--error-bg);
  color: var(--error-text);
}
.message:not(.success):not(.error):not(:empty) {
  display: block;
  background: var(--input-bg);
  color: var(--text-muted);
}
