body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  padding: 2.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  animation: rise 0.3s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.brand { margin-bottom: 2rem; }

.brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
  display: block;
}

.brand-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44,110,73,0.12);
}

input::placeholder { color: #AEADA9; }

.field + .field { margin-top: 1rem; }

.error-msg {
  font-size: 13px;
  color: var(--danger);
  margin-top: 10px;
  min-height: 18px;
  opacity: 0;
  transition: opacity 0.2s;
}
.error-msg.visible { opacity: 1; }

button[type="submit"] {
  width: 100%;
  margin-top: 1.25rem;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 11px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

button[type="submit"]:hover { background: var(--accent-hover); }
button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }

button[type="submit"] .btn-text { transition: opacity 0.15s; }
button[type="submit"].loading .btn-text { opacity: 0; }

button[type="submit"] .spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.15s;
}
button[type="submit"].loading .spinner { opacity: 1; }

.dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

.footer {
  margin-top: 1.5rem;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
