* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #2b2b2b;
  background: #eee;
}

.topbar {
  width: 100%;
  background: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  border-color: transparent;
}
.logo {
  height: 48px;
  width: auto;
  display: block;
}

.page {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: start center;
  padding: 32px 16px;
}

.card {
  width: 100%;
  max-width: 700px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
  padding: 28px 26px 22px;
}

.title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 300;
  color: #333;
}

.login-link {
  display: inline-block;
  color: #0b7a82;
  font-weight: 700;
  text-decoration: none;
  margin: 6px 0 0px;
}

.section-title {
  margin: 6px 0 12px;
  font-size: 20px;
  color: #0f7c88;
  font-weight: 300;
}

.field-label {
  width: 75%;
  display: block;
  margin: 8px 0 4px;
  font-size: 20px;
  color: #0f7c88;
  font-weight: 300;
  text-align: left;
}

.field-label:first-of-type {
  margin-top: 0;
}

.form {
  width: 100%;
  display: grid;
  justify-items: center;
}

.input {
  width: 75%;
  margin: 8px 0;
  padding: 4px 6px;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.input::placeholder { color: #9aa3ad; }
.input:focus {
  border-color: #0ea5a4;
  box-shadow: 0 0 0 3px rgba(14,165,164,0.15);
}

.forgot {
  margin: 8px 0 12px;
  color: #147c8a;
  text-decoration: none;
  font-size: 14px;
}

.divider {
  width: 92%;
  height: 1px;
  border: 0;
  background: #e6eaee;
  margin: 10px 0 18px;
}

.actions {
  width: 92%;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.btn {
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .05s ease-in-out, filter .15s;
}

.btn-cancel {
  background: #e33a76;
  color: #fff;
  padding: 10px 18px;
}

.btn-login {
  background: #048391;
  color: #fff;
  width: 100%;
  height: 35px;
  font-size: 16px;
}

.btn:hover { filter: brightness(.95); }
.btn:active { transform: translateY(1px); }

.bottom-bar {
  width: 100%;
  height: 1px;
  border: 0;
  background: #e6eaee;
  margin-top: 22px;
}

@media (max-width: 520px) {
  .title { font-size: 30px; }
  .field-label,
  .input { width: 90%; }
  .actions { gap: 16px; }
}
.vocal-label {
  width: 75%;
  font-size: 13px;
  color: #555;
  font-weight: 600;
  margin: 10px 0 6px;
  text-align: left;
  letter-spacing: 0.2px;
  display: block;
}

.vocal-recorder {
  width: 75%;
  background: #f7fdfd;
  border: 1px solid #b0d4d7;
  border-radius: 10px;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vocal-mic-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mic-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #048391;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, box-shadow .2s;
  position: relative;
}
.mic-btn:hover { background: #036f7c; }
.mic-btn .mic-icon { width: 22px; height: 22px; }

.mic-btn.recording {
  background: #d32f2f;
  animation: pulse-ring 1.2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(211,47,47,0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(211,47,47,0); }
  100% { box-shadow: 0 0 0 0 rgba(211,47,47,0); }
}

.vocal-status { display: flex; flex-direction: column; gap: 2px; }
.vocal-hint { font-size: 13px; color: #555; }
.vocal-timer { font-size: 20px; font-weight: 700; color: #d32f2f; font-variant-numeric: tabular-nums; }

.vocal-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
  padding: 0 2px;
}
.vocal-bars span {
  flex: 1;
  background: #048391;
  border-radius: 3px;
  min-height: 4px;
  animation: bar-bounce 0.8s ease-in-out infinite alternate;
}
.vocal-bars span:nth-child(1)  { animation-delay: 0.0s; }
.vocal-bars span:nth-child(2)  { animation-delay: 0.1s; }
.vocal-bars span:nth-child(3)  { animation-delay: 0.2s; }
.vocal-bars span:nth-child(4)  { animation-delay: 0.05s; }
.vocal-bars span:nth-child(5)  { animation-delay: 0.3s; }
.vocal-bars span:nth-child(6)  { animation-delay: 0.15s; }
.vocal-bars span:nth-child(7)  { animation-delay: 0.25s; }
.vocal-bars span:nth-child(8)  { animation-delay: 0.08s; }
.vocal-bars span:nth-child(9)  { animation-delay: 0.18s; }
.vocal-bars span:nth-child(10) { animation-delay: 0.12s; }
@keyframes bar-bounce {
  from { height: 4px; }
  to   { height: 28px; }
}

.vocal-playback {
  width: 100%;
  height: 36px;
  border-radius: 6px;
  outline: none;
}

@media (max-width: 520px) {
  .field-label,
  .vocal-label, .vocal-recorder { width: 90%; }
}

.voice-intro {
  font-size: 14px;
  color: #555;
  margin: 0 0 16px;
  text-align: left;
  line-height: 1.4;
}

.error-message {
    color: #b00020;
    background-color: #ffe6e6;
    border: 1px solid #ffb3b3;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}
