/* Login page styles with background image */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: url('/static/images/top_kv.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.login-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 50px 40px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-logo {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo img {
  max-width: 200px;
  height: auto;
}

.login-box h1 {
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 35px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.error-message {
  background: #f5f5f7;
  color: #1d1d1f;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #ff3b30;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #1d1d1f;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
}

/* チェックボックス・ラジオはネストした独自レイアウト用（例: API Key 権限）— テキスト input 用スタイルを当てない */
.form-group input:not([type='checkbox']):not([type='radio']),
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #1d1d1f;
}

.form-group input:not([type='checkbox']):not([type='radio']):focus,
.form-group select:focus {
  outline: none;
  border-color: #007aff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.required-mark {
  color: #c62828;
  font-weight: 700;
}

.notice-box {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 1.2rem;
  background: #f5f5f7;
  padding: 1rem 1.2rem;
  border: 1px solid #e5e5e7;
  border-radius: 8px;
  white-space: pre-line;
}

/* Apple-style buttons */
.login-btn {
  width: 100%;
  padding: 16px;
  background: #6e6e73;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.login-btn--pill {
  border-radius: 30px;
}

.login-btn:hover {
  background: #6e6e73;
}

.login-btn:active {
  transform: scale(0.98);
}

.login-btn--formSubmit {
  margin-top: 1rem;
}

.login-btn i {
  margin-right: 8px;
}

/* Links and additional elements */
.form-links {
  text-align: center;
  margin-top: 24px;
}

.form-links a {
  color: #007aff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s ease;
}

.form-links a:hover {
  color: #0051d5;
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: #6e6e73;
  font-size: 13px;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #d2d2d7;
}

.divider::before {
  margin-right: 12px;
}

.divider::after {
  margin-left: 12px;
}

/* Utilities */
.is-hidden {
  display: none !important;
}

.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.is-submitting {
  opacity: 0.8;
  cursor: wait;
}

/* Event form success page */
.eventSuccessPage {
  min-height: 100vh;
  padding: 2rem 1rem;
  background: #f5f5f7;
}

.eventSuccessCard {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 45px -30px rgba(0, 0, 0, 0.4);
}

.eventSuccessBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.eventSuccessBadge--success {
  color: #065f46;
  background: #d1fae5;
}

.eventSuccessBadge--warning {
  color: #ff9500;
  background: #fff7ed;
}

.eventSuccessTitle {
  margin: 0 0 0.5rem 0;
  color: #1d1d1f;
}

.eventSuccessMessage {
  color: #6e6e73;
  line-height: 1.6;
}

.eventSuccessActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.eventSuccessAction {
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.eventSuccessAction--primary {
  color: #ffffff;
  background: #007aff;
}

.eventSuccessAction--secondary {
  color: #1d1d1f;
  background: #f5f5f7;
}

.eventSuccessAction--calendar {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  max-width: 360px;
  justify-content: center;
  padding: 1rem 1.6rem;
  color: #ffffff;
  background: #007aff;
  border-radius: 14px;
  font-size: 1.05rem;
  box-shadow: 0 14px 28px rgba(0, 122, 255, 0.24);
}

.eventSuccessAction--calendar img {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
}

/* Login page: additional elements that were inline-styled */
.login-innerWrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 440px);
}

.login-submitStatus {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  color: #6e6e73;
  font-size: 0.95rem;
}

.login-submitStatus.is-visible {
  display: flex;
}

.login-submitSpinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d2d2d7;
  border-top-color: #007bff;
  border-radius: 999px;
  animation: login-submit-spin 0.8s linear infinite;
}

@keyframes login-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-forgotWrap {
  margin-top: 0.75rem;
  text-align: center;
}

.login-forgotBtn {
  background: none;
  border: none;
  color: #007bff;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.login-actions {
  margin-top: 1rem;
}

.loginActionBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.loginActionBtn--passkey {
  background: #ffffff;
  border: 2px solid #007bff;
  color: #007bff;
}

.loginActionIcon--passkey {
  font-size: 1.5rem;
  color: #007bff;
}

.loginActionBtn--line {
  background: #06c755;
  border: none;
  color: #ffffff;
  margin-bottom: 1rem;
}

.loginActionLineIcon {
  width: 24px;
  height: 24px;
}

.login-passkeyMessage {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.login-passkeyMessage.is-muted,
.login-passkeyMessage.is-info {
  color: #6e6e73;
}

.login-passkeyMessage.is-error {
  color: #dc3545;
}

.login-dividerHr {
  margin: 1rem 0 1.5rem;
  border: 0;
  border-top: 1px solid #e0e0e0;
}

.login-contactWrap {
  text-align: center;
  padding: 1rem 0 0.25rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f5f5f7;
  color: #6e6e73;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #d2d2d7;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}

/* Password reset modal (LoginPage) */
.passwordReset_message {
  display: none;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #e5e5e7;
  white-space: pre-line;
  line-height: 1.6;
}

.passwordReset_message.is-visible {
  display: block;
}

.passwordReset_message.is-error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.passwordReset_message.is-success {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.passwordReset_paragraph {
  margin: 0 0 1rem;
  color: #6e6e73;
  line-height: 1.7;
  font-size: 0.95rem;
}

.passwordReset_success .passwordReset_paragraph {
  margin: 0;
}

.passwordReset_resendBtn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d2d2d7;
  background: #ffffff;
  color: #1d1d1f;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.passwordReset_note {
  margin: 0.75rem 0 0;
  color: #6e6e73;
  line-height: 1.6;
  font-size: 0.85rem;
  text-align: center;
}

.passwordReset_success {
  display: none;
}

.passwordReset_success.is-visible {
  display: block;
}

/* ── Survey section in registration form ── */
.register-survey-section {
  margin-bottom: 24px;
  border-top: 1px solid #e5e5e7;
  padding-top: 20px;
}

.register-survey-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 18px;
}

.register-survey-heading i {
  color: #ff6b00;
}

.survey-sub-label {
  font-size: 12px;
  font-weight: 400;
  color: #6e6e73;
  margin-left: 6px;
}

.survey-options {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.survey-option-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f5f5f7;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 400 !important;
  font-size: 14px;
  color: #1d1d1f;
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}

.survey-option-label:hover {
  background: #eaf3ff;
  border-color: #007aff;
}

.survey-option-label input[type='radio'],
.survey-option-label input[type='checkbox'] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #007aff;
  cursor: pointer;
}

/* Responsive (forms/login) */
@media (max-width: 768px) {
  .login-container {
    background-image: url('/static/images/top_kv_sp.png');
  }

  .login-box {
    padding: 36px 28px;
    border-radius: 20px;
  }

  .login-box h1 {
    font-size: 24px;
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .login-box {
    padding: 28px 20px;
  }

  .form-group input:not([type='checkbox']):not([type='radio']),
  .login-btn {
    padding: 12px 14px;
    font-size: 14px;
  }
}
