:root {
  color-scheme: dark;
  --surface-color: rgba(16, 23, 42, 0.9);
  --accent-color: #ffd700;
  --accent-color-hover: #f2c200;
  --text-primary: #f8fafc;
  --text-muted: rgba(226, 232, 240, 0.78);
  --border-light: rgba(255, 215, 0, 0.45);
  --brand-badge-size: 56px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: linear-gradient(125deg, #111827 0%, #1a73e8 100%);
  color: var(--text-primary);
}

body {
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  flex-shrink: 0;
  width: 100%;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


.header-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-top: 1.75rem;
  padding-bottom: 0.75rem;
  text-align: center;
}

.brand-title {
  margin: 0;
  font-size: 1.4rem;
}

.brand-sub {
  font-size: 0.9rem;
  color: rgba(229, 231, 235, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-badge {
  display: inline-block;
  width: var(--brand-badge-size);
  height: var(--brand-badge-size);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  background-image: -webkit-image-set(
    url('../../ya/fav.webp') type('image/webp'),
    url('../../ya/fav.png') type('image/png')
  );
  background-image: image-set(
    url('../../ya/fav.webp') type('image/webp'),
    url('../../ya/fav.png') type('image/png')
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.5);
}

.brand-badge.small {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.content-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 3rem 1rem 5rem;
}

.elev-card {
  width: min(calc(100% - 2rem), 480px);
  background: var(--surface-color);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 68px rgba(12, 17, 29, 0.45);
  padding: 2.5rem 2.25rem;
}

.card-head {
  margin-bottom: 1.5rem;
}

.headline {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.alert {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  color: #111827;
  font-weight: 600;
}

form {
  display: grid;
  gap: 1.5rem;
}

.floating-label-group {
  position: relative;
}

.floating-label-group .form-control {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 1.1rem 1rem 0.65rem;
  background: rgba(17, 17, 17, 0.75);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-label-group .form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.15rem rgba(255, 215, 0, 0.35);
  background: rgba(0, 0, 0, 0.72);
}

.floating-label-group label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  transition: 0.2s ease;
  background: transparent;
  color: rgba(248, 250, 252, 0.65);
  pointer-events: none;
}

.floating-label-group.is-filled label,
.floating-label-group .form-control:focus + label {
  top: 0.35rem;
  transform: none;
  font-size: 0.75rem;
  color: var(--accent-color);
}

.muted-note {
  margin: -0.5rem 0 0.5rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.65);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 215, 0, 0.6);
  outline-offset: 2px;
}

.btn-theme {
  background: var(--accent-color);
  color: #111827;
  box-shadow: 0 16px 32px rgba(255, 215, 0, 0.28);
}

.btn-theme:hover {
  background: var(--accent-color-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(229, 231, 235, 0.9);
  padding: 0.75rem 1.6rem;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 11, 21, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 240, 0.85);
  z-index: 2000;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.35rem 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  display: inline-flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.8rem;
}

.footer-meta {
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.55);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  :root {
    --brand-badge-size: 48px;
  }

  .content-wrap {
    padding: 2rem 1rem 3.5rem;
  }

  .elev-card {
    padding: 1.8rem 1.5rem;
  }

  .headline {
    font-size: 1.5rem;
  }

  .footer-wrap {
    gap: 0.5rem;
    flex-direction: row;
    padding: 0.25rem 0.75rem;
  }
  
  .footer-copy {
    font-size: 0.75rem;
  }
  
  .footer-meta {
    font-size: 0.7rem;
  }
}
