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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0a0c10;
  color: #e8eaef;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Match landing header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid #1e2230;
}

.logo {
  font-size: 18px;
  font-weight: 600;
  color: #e8eaef;
  text-decoration: none;
}

.logo:hover {
  color: #5b8def;
}

.site-header nav a {
  color: #8b92a8;
  text-decoration: none;
  font-size: 14px;
}

.site-header nav a:hover {
  color: #e8eaef;
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #12141c;
  border: 1px solid #1e2230;
  border-radius: 12px;
  padding: 32px 28px;
}

.login-brand {
  margin-bottom: 24px;
}

.login-brand h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.login-brand p {
  font-size: 14px;
  color: #8b92a8;
  margin-top: 6px;
}

.login-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #1e2230;
}

.login-tab {
  padding: 0 0 10px;
  margin-bottom: -1px;
  border: none;
  background: transparent;
  color: #8b92a8;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.login-tab:hover {
  color: #c8cdd8;
}

.login-tab.active {
  color: #e8eaef;
  border-bottom: 2px solid #5b8def;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #c8cdd8;
  margin-bottom: 6px;
}

.login-field input {
  width: 100%;
  padding: 10px 12px;
  background: #0a0c10;
  border: 1px solid #2e3344;
  border-radius: 8px;
  color: #e8eaef;
  font-family: inherit;
  font-size: 15px;
}

.login-field input:focus {
  outline: none;
  border-color: #5b8def;
}

.login-submit {
  margin-top: 4px;
  padding: 12px;
  background: #5b8def;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.login-submit:hover {
  background: #4a7de0;
}

.login-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-message {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  display: none;
}

.login-message.visible {
  display: block;
}

.login-message.error {
  background: rgba(224, 92, 92, 0.12);
  color: #e05c5c;
}

.login-message.ok {
  background: rgba(76, 175, 80, 0.12);
  color: #4caf50;
}

.login-footer {
  margin-top: 20px;
  font-size: 13px;
}

.login-footer a {
  color: #8b92a8;
  text-decoration: none;
}

.login-footer a:hover {
  color: #e8eaef;
}

.login-setup-notice {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255, 176, 32, 0.08);
  border: 1px solid rgba(255, 176, 32, 0.2);
  border-radius: 8px;
  font-size: 12px;
  color: #ffb020;
  display: none;
}

.login-setup-notice.visible {
  display: block;
}

.hidden {
  display: none !important;
}

.field-hint {
  font-size: 12px;
  color: #6b7289;
  margin-top: 4px;
}

.login-forgot {
  margin-top: -4px;
}

.login-forgot a {
  font-size: 13px;
  color: #8b92a8;
  text-decoration: none;
}

.login-forgot a:hover {
  color: #5b8def;
}

#recover-code-step label + input + label {
  margin-top: 12px;
  display: block;
}

#recover-code {
  letter-spacing: 0.15em;
  font-size: 17px;
  text-align: center;
}

/* Subscribe page */
.subscribe-card {
  max-width: 400px;
}

.price-box {
  padding: 16px 0 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid #1e2230;
}

.price-amount {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-cents {
  font-size: 24px;
}

.price-period {
  font-size: 14px;
  color: #8b92a8;
  margin-top: 4px;
}

.price-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.price-features li {
  padding: 8px 0;
  font-size: 14px;
  color: #8b92a8;
  border-bottom: 1px solid #1e2230;
}

.price-features li:last-child {
  border-bottom: none;
}

.login-submit-secondary {
  margin-top: 10px;
  background: #1a1d27;
  color: #e8eaef;
  border: 1px solid #2e3344;
}

.login-submit-secondary:hover {
  border-color: #5b8def;
  background: #242836;
}

.subscribe-footer {
  margin-top: 16px;
}
