body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #fbf9f1;
  min-height: 100vh;
  /*display: flex;
  flex-direction: column;*/
}

.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 40px rgba(125, 84, 79, 0.07);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  margin: auto;
}

.card-title {
  text-align: center;
  margin-bottom: 2rem;
}

.card-title h2 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #7d544f;
  margin-bottom: 0.4rem;
}

.card-title p {
  font-size: 0.95rem;
  color: #514442;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 11px;
  font-weight: 600;
  color: #837472;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 4px;
}

.input-row {
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(131, 116, 114, 0.2);
  padding: 8px 4px;
  transition: border-color 0.3s;
  gap: 10px;
}

.input-row:focus-within {
  border-bottom-color: #9C6B7A;
}

.mat-icon {
  font-family: 'Material Symbols Outlined';
  font-size: 19px;
  color: #837472;
  font-variation-settings: 'FILL' 0, 'wght' 300;
  user-select: none;
  flex-shrink: 0;
}

.input-row input {
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.95rem;
  color: #1b1c17;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.input-row input::placeholder {
  color: #bfb3b1;
}

.eye-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #bfb3b1;
  font-family: 'Material Symbols Outlined';
  font-size: 19px;
  font-variation-settings: 'FILL' 0, 'wght' 300;
  transition: color 0.2s;
  line-height: 1;
  flex-shrink: 0;
}

.eye-btn:hover { color: #837472; }

.forgot-link {
  display: block;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: #9C6B7A;
  text-decoration: none;
  margin-top: 6px;
}

.forgot-link:hover { text-decoration: underline; }

.login-btn {
  width: 100%;
  background: linear-gradient(to right, #f7c1bb, #cee5da);
  color: #754d49;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: box-shadow 0.3s, transform 0.15s;
  margin-bottom: 1.5rem;
}

.login-btn:hover {
  box-shadow: 0 4px 20px rgba(125, 84, 79, 0.15);
  transform: translateY(-1px);
}

.divider {
  border: none;
  border-top: 1px solid rgba(212, 194, 192, 0.3);
  margin-bottom: 1.25rem;
}

.signup-text {
  text-align: center;
  font-size: 0.95rem;
  color: #514442;
}

.signup-text a {
  color: #9C6B7A;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

main {
  min-height: calc(100vh - 60px - 80px); /* ヘッダーとフッターの高さを引いた分 */
  /*display: block;
  align-items: center;
  justify-content: center;
  padding: 0;*/
  background: #fbf9f1;
}

.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.2rem;
  margin-bottom: 1rem;
}

.terms-row input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #9C6B7A;
  flex-shrink: 0;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(to right, #f7c1bb, #cee5da);
  color: #754d49;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-top: 0.3rem;
  transition: box-shadow 0.3s, transform 0.15s;
}

.submit-btn:hover {
  box-shadow: 0 4px 20px rgba(125,84,79,0.15);
  transform: translateY(-1px);
}

/* ===== フラッシュメッセージ ===== */
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 8px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
  position: relative;
}

.flash .material-symbols-outlined {
  font-size: 20px;
  flex-shrink: 0;
}

.flash-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  opacity: 0.6;
}

.flash-close:hover { opacity: 1; }

.flash-close .material-symbols-outlined {
  font-size: 18px;
}

/* 成功：緑系 */
.flash--notice {
  background-color: #eaf6f0;
  color: #2e6b50;
  border: 1px solid #b8e2ce;
}

.flash--notice .material-symbols-outlined { color: #3a9966; }
.flash--notice .flash-close { color: #2e6b50; }

/* エラー：赤系（Feelogのピンク寄り） */
.flash--alert {
  background-color: #fdf0ef;
  color: #8b3a35;
  border: 1px solid #f2c4bf;
}

.flash--alert .material-symbols-outlined { color: #c0504a; }
.flash--alert .flash-close { color: #8b3a35; }

/* ===== 必須・任意バッジ ===== */
.form-required {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
  background-color: #fce8e6;
  color: #9C6B7A;
  letter-spacing: 0.03em;
}

.form-optional {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
  background-color: #e8f0ee;
  color: #4a7a6a;
  letter-spacing: 0.03em;
}