:root {
  --bg: #ffffff;
  --surface: #f8faff;
  --surface-hover: #f0f5ff;
  --border: #e2e8f0;
  --border-focus: #265eeb;
  --text: #0f172a;
  --text-secondary: #64748b;
  --accent: #265eeb;
  --accent-dim: #1d4ed8;
  --accent-light: #e7eeff;
  --error: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background-image: radial-gradient(ellipse at 50% -20%, #d4e0ff 0%, #f0f4ff 50%, transparent 80%);
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 520px;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.header-logo {
  margin-bottom: 1.25rem;
  display: inline-block;
  animation: fadeSlideUp 0.8s ease-out both;
}

.header-logo svg {
  display: block;
  height: 36px;
  width: auto;
}

.header-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.03em;
  animation: fadeSlideUp 0.8s ease-out 0.1s both;
}

.header-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  animation: fadeSlideUp 0.8s ease-out 0.3s both;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
}

.field {
  margin-bottom: 1.25rem;
}

.label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.required {
  color: var(--accent);
}

.input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(38, 94, 235, 0.12);
}

.input::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}

.textarea {
  resize: vertical;
  min-height: 2.6rem;
}

.row {
  display: flex;
  gap: 1rem;
}

.row .field {
  flex: 1;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover:not(:disabled) {
  background: var(--accent-dim);
  box-shadow: 0 4px 16px rgba(38, 94, 235, 0.3);
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}

.error {
  display: none;
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  color: var(--error);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.footer {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.65;
  animation: fadeSlideUp 0.8s ease-out 0.4s both;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@media (max-width: 480px) {
  .card {
    padding: 1.25rem;
  }
  .row {
    flex-direction: column;
    gap: 0;
  }
  .header-title {
    font-size: 1.35rem;
  }
  .header-logo svg {
    height: 28px;
  }
}
