/* ── Mia HQ Lock Screen — Squarespace-inspired ── */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@900&family=Inter:wght@300;400&display=swap');

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

:root {
  --bg: #000;
  --red: #c43e3e;
  --text: #f0ece4;
  --text-sec: #555;
  --border: #222;
  --card: #1a1a1a;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  height: 100vh;
  overflow: hidden;
}

.lock-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;
}

.lock-content {
  text-align: center;
  width: 100%;
  max-width: 360px;
  padding: 0 24px;
}

.lock-title {
  font-family: 'Inter Tight', 'Arial Black', system-ui, sans-serif;
  font-weight: 900;
  font-size: 48px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 48px;
}

.lock-form {
  width: 100%;
}

.lock-input-row {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--red);
  transition: border-color 0.3s;
}

.lock-input-row:focus-within {
  border-color: var(--red);
}

.lock-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  font-size: 16px;
  padding: 12px 0;
  letter-spacing: 0.08em;
  caret-color: var(--red);
}

.lock-input::placeholder {
  color: var(--text-sec);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.lock-submit {
  background: #3a3a3a;
  border: none;
  color: #000;
  cursor: pointer;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 12px;
  margin-bottom: -1px;
  transition: background 0.2s;
}

.lock-submit:hover {
  background: #4a4a4a;
}

.lock-error {
  font-size: 13px;
  color: var(--red);
  margin-top: 16px;
  height: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ── Bottom accent bar (the red loading bar) ── */
.lock-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--red);
  transition: width 0.3s ease;
}

.lock-bar.loading {
  width: 60%;
  transition: width 2s ease-out;
}

.lock-bar.success {
  width: 100%;
  transition: width 0.3s ease;
}

.lock-bar.error {
  width: 100%;
  background: var(--red);
  opacity: 0.5;
  transition: width 0.2s ease, opacity 1s ease;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .lock-title { font-size: 36px; margin-bottom: 36px; }
  .lock-content { max-width: 300px; }
}
