/* ── Animal Password · Login / Register Page ── */
body {
  background:
    url('https://animalpassword.s3.bitiful.net/assets/light-green-wallpaper.svg') center center/cover no-repeat,
    rgb(125, 195, 149);
  color: var(--text-body);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, calc(14px + env(safe-area-inset-top))) max(20px, env(safe-area-inset-right)) max(20px, calc(14px + env(safe-area-inset-bottom))) max(20px, env(safe-area-inset-left));
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255, 249, 230, 0.1);
  pointer-events: none;
}

.card {
  position: relative;
  z-index: 1;
  background: rgba(255, 249, 230, 0.94);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 36px rgba(61, 52, 40, 0.18);
  backdrop-filter: blur(8px);
}

.card h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 8px;
}

.card .sub {
  text-align: center;
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 14px;
  font-weight: 500;
}

.security-strip {
  display: grid;
  gap: 3px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1.5px solid rgba(25, 200, 185, 0.28);
  border-radius: 14px;
  background: rgba(230, 249, 246, 0.72);
  color: var(--text-body);
  line-height: 1.45;
}

.security-strip strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.security-strip span {
  font-size: 12px;
  font-weight: 700;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  padding: 4px;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  border-radius: 50px;
  transition: all 0.2s var(--ease);
}

.tab.active {
  background: var(--primary);
  color: #fff;
}

/* ── Forms ── */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.form-group .anim-input {
  padding: 12px 16px;
}

/* ── Login-specific button sizing ── */
.card .btn.primary {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

.link-btn {
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.link-btn:hover {
  color: var(--primary-active);
  text-decoration: underline;
}

/* ── OAuth ── */
.oauth-btns {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.oauth-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-body);
  transition: all 0.15s var(--ease);
  font-family: inherit;
}

.oauth-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

.oauth-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.oauth-btn.soon {
  opacity: 0.5;
}

.oauth-btn.soon:hover {
  border-color: var(--border);
  color: var(--text-body);
}

/* ── Feedback ── */

.verify-status {
  margin: 18px 0 6px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 5px 0 rgba(44, 90, 56, 0.12);
}

.verify-status.success {
  color: #276f3b;
  background: #effcda;
  border-color: #a5d76a;
}

.verify-status.warning {
  color: #9b5727;
  background: #fff1dc;
  border-color: #efb06b;
}

.auth-error {
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-top: 8px;
  min-height: 20px;
}

.verify-msg {
  text-align: center;
  padding: 20px;
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.6;
}

.back-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
}

.back-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.back-link a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .card {
    padding: 28px 20px;
  }
  .card h1 {
    font-size: 22px;
  }
}
