/* アカウント作成ページのスタイル */

/* 背景とメインコンテナ */
.signup-page {
  min-height: 100vh;
  background-color: #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.signup-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 3rem 2rem;
  width: 100%;
  max-width: 720px;
  animation: fadeInUp 0.6s ease-out;
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ヘッダー */
.signup-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.signup-title {
  font-size: 2.5rem;
  font-weight: 800;
  background-color: #667eea;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.signup-subtitle {
  color: #6b7280;
  font-size: 1rem;
}

/* フォームフィールド */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f9fafb;
  color: #1f2937;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* エラーメッセージ */
.error-message {
  display: block;
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* パスワード強度インジケーター */
#password-strength {
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.strength-bar {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 0.25rem;
  background-color: #e5e7eb;
  overflow: hidden;
}

.strength-bar-fill {
  height: 100%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak {
  width: 33%;
  background-color: #ef4444;
}

.strength-medium {
  width: 66%;
  background-color: #f59e0b;
}

.strength-strong {
  width: 100%;
  background-color: #10b981;
}

.strength-text {
  font-size: 0.75rem;
  font-weight: 500;
}

/* チェックボックス */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.checkbox-input {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  border: 2px solid #d1d5db;
  cursor: pointer;
  margin-top: 0.125rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.checkbox-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

.checkbox-label {
  font-size: 0.875rem;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
}

.checkbox-label a {
  color: #667eea;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.checkbox-label a:hover {
  color: #5a67d8;
}

/* 送信ボタン */
.submit-button {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #667eea;
  color: white;
  position: relative;
  overflow: hidden;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.submit-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 5px 10px rgba(102, 126, 234, 0.2);
}

.submit-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.submit-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.submit-button:hover::after {
  width: 300px;
  height: 300px;
}

/* ログインリンク */
.login-link-container {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.login-link-text {
  font-size: 0.875rem;
  color: #6b7280;
}

.login-link {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-left: 0.25rem;
}

.login-link:hover {
  color: #5a67d8;
  text-decoration: underline;
}

/* アラート */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInLeft 0.3s ease-out;
}

.alert-error {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* レスポンシブデザイン */
@media (max-width: 640px) {
  .signup-container {
    padding: 2rem 1.5rem;
  }

  .signup-title {
    font-size: 2rem;
  }

  .form-input {
    padding: 0.75rem 0.875rem;
  }
}

/* フォーカス時のアクセシビリティ */
.form-input:focus-visible,
.checkbox-input:focus-visible,
.submit-button:focus-visible,
.login-link:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* ダークモード対応（将来の実装用） */
@media (prefers-color-scheme: dark) {
  /* ダークモードのスタイルをここに追加 */
}