/* ikou login/signup page */

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.back-home {
  position: absolute;
  top: max(env(safe-area-inset-top), 20px);
  left: max(env(safe-area-inset-left), 20px);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: color .2s, background .2s;
}
.back-home:hover { color: var(--text); background: var(--glass-strong); }

.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(env(safe-area-inset-top), 24px) 20px max(env(safe-area-inset-bottom), 24px);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 32px 26px 26px;
}
.auth-head {
  text-align: center;
  margin-bottom: 22px;
}
.auth-glyph {
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.auth-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.auth-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-dim);
  font-weight: 500;
}

.google-btn {
  width: 100%;
  background: #ffffff;
  color: #1f1f1f;
  border-color: rgba(0,0,0,.08);
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.google-btn:hover { background: #f6f7f8; }

.or-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 6px 0 16px;
}
.or-sep::before, .or-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--stroke);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.auth-form .btn { margin-top: 6px; padding: 13px 18px; }

.hint {
  font-size: 11.5px;
  color: var(--text-faint);
  font-weight: 500;
  padding-left: 4px;
  margin-top: 2px;
}

#msg { margin: 10px 0; }
#msg:empty { display: none; }

.auth-links {
  margin-top: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.auth-links a:hover { color: var(--text); }
.auth-switch {
  font-size: 13px;
  color: var(--text-faint);
}
.auth-switch a {
  color: #bdc6ff;
  font-weight: 600;
  margin-left: 6px;
}

.auth-config-warning {
  margin-top: 18px;
  padding: 11px 14px;
  background: rgba(255, 170, 77, .10);
  border: 1px solid rgba(255, 170, 77, .28);
  border-radius: 12px;
  font-size: 12.5px;
  color: #ffd49a;
  text-align: center;
  font-weight: 500;
  line-height: 1.5;
}
.auth-config-warning code {
  background: rgba(255,255,255,.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}
