:root{
  --bg: #f6f6f2;
  --card: #ffffff;
  --accent: #1f1f1f;
  --muted: #6b6b6b;
  --border: #e6e6e6;

  font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
}

/* Base */
html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--accent);
}

.center {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Card */
.card {
  width: 100%;
  max-width: 760px;
  background: var(--card);
  border-radius: 14px;
  padding: 2.4rem 2.6rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.footer {
  margin-top: 2.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;

  font-size: 0.8rem;
  color: var(--muted);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .sep {
  opacity: 0.6;
}


/* Quote block */
.quote-wrap {
  max-width: 600px;
  margin: 0;
}

.quote {
  font-size: 1.25rem;
  line-height: 1.75;
  font-weight: 500;
  color: var(--accent);

  text-align: left;      /* key change */
  letter-spacing: 0.01em;

  margin: 0 0 1.6rem 0;
  opacity: 0;
  animation: fadeIn 1.8s ease forwards;
}

.quote::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--border);
  margin-top: 1.2rem;
}

.sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.loading-text {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1.2rem;
}

/* Animation */
@keyframes fadeIn {
  to { opacity: 1; }
}

/* Form */
.form {
  display: none;
  margin-top: 1.6rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.row-2 {
  grid-template-columns: 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

/* Inputs */
input,
select,
textarea,
button {
  font: inherit;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--accent);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #bdbdbd;
}

/* Actions */
.actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
}

button.primary {
  background: #1f1f1f;
  color: #ffffff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

button.primary:hover {
  background: #000000;
}

button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.8rem;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d4d4d4;
  border-top-color: #1f1f1f;
  animation: spin 0.9s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Messages */
.msg {
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 0.9rem;
  font-size: 0.9rem;
}

.msg.success {
  background: #eef8f1;
  color: #1e7f43;
  border: 1px solid #d7efe0;
}

.msg.warn {
  background: #fff7e6;
  color: #8a5b00;
  border: 1px solid #f1e1b6;
}

.msg.error {
  background: #fdeeee;
  color: #a12525;
  border: 1px solid #f5caca;
}

/* Helpers */
.sm { font-size: 0.85rem; }
.inline { display: inline-block; }

/* Responsive */
@media (max-width: 560px) {
  .card {
    padding: 1.6rem 1.4rem;
    border-radius: 12px;
  }

  .quote {
    font-size: 1.1rem;
  }

  .row-2 {
    grid-template-columns: 1fr;
  }
}
