/* ============================================
   Login page styles
   ============================================ */

.card {
  background: #fff;
      border-radius: 18px;
      padding: 20px;
      margin-top: 32px;
}

.login-logo {
  display: block;
      width: 104px;
      height: 104px;
      object-fit: contain;
      margin: 0 auto 14px;
      border-radius: 24px;
}

h1 {
  font-size: 24px;
      margin: 0 0 16px;
}

.error {
  color: #d70015;
      margin-bottom: 10px;
}

.card {
  background: #fff; border-radius: 18px; padding: 14px; margin-bottom: 14px; overflow: hidden;
}

.error {
  color: #d70015;
}

#toast .toast-bubble.error {
  background: #d70015;
}

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

html, body {
  overflow-x: hidden;
      max-width: 100vw;
}

body {
  margin: 0;
      font-family: -apple-system, BlinkMacSystemFont, sans-serif;
      background: #f2f2f7;
      padding-top: env(safe-area-inset-top);
      padding-right: env(safe-area-inset-right);
      padding-bottom: env(safe-area-inset-bottom);
      padding-left: env(safe-area-inset-left);
      -webkit-text-size-adjust: 100%;
      overscroll-behavior-x: none;
}

main {
  max-width: 430px;
      margin: 0 auto;
      padding: 24px;
}

.card {
  background: #fff;
      border-radius: 18px;
      padding: 20px;
      margin-top: 32px;
}

.login-logo {
  display: block;
      width: 104px;
      height: 104px;
      object-fit: contain;
      margin: 0 auto 14px;
      border-radius: 24px;
}

h1 {
  font-size: 24px;
      margin: 0 0 16px;
}

label {
  display: block;
      margin: 12px 0 4px;
      font-size: 16px;
      color: #333;
}

input {
  width: 100%;
      min-height: 50px;
      border-radius: 14px;
      border: 1px solid #ccc;
      font-size: 20px;
      padding: 8px;
      box-sizing: border-box;
}

button {
  width: 100%;
      min-height: 52px;
      border: 0;
      border-radius: 14px;
      background: #007aff;
      color: #fff;
      font-size: 20px;
      margin-top: 16px;
}

.error {
  color: #d70015;
      margin-bottom: 10px;
}

.button-group {
  display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 6px;
}

.button-group input[type="radio"] {
  position: absolute;
      opacity: 0;
      pointer-events: none;
      width: 1px;
      height: 1px;
}

.button-group label {
  display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 60px;
      margin: 0;
      border: 2px solid #d1d1d6;
      border-radius: 16px;
      background: #fff;
      font-size: 18px;
      font-weight: 500;
      color: #333;
      cursor: pointer;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      transition: background-color 0.15s, border-color 0.15s, color 0.15s;
      padding: 10px;
      text-align: center;
      line-height: 1.2;
      word-break: break-word;
}

.button-group label .emoji {
  font-size: 22px;
      line-height: 1;
}

.button-group input[type="radio"]:checked + label {
  background: #007aff;
      border-color: #007aff;
      color: #fff;
      box-shadow: 0 2px 8px rgba(0,122,255,0.25);
}

.button-group input[type="radio"]:focus-visible + label {
  outline: 3px solid rgba(0,122,255,0.4);
      outline-offset: 2px;
}

