/* ========================================
   ログイン/新規登録ページ CSS
   ======================================== */

/* 認証コンテナ */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--sakura-light), var(--sakura-pink));
  animation: fadeIn 0.4s ease-out;
}

/* 認証カード */
.auth-card {
  background: linear-gradient(135deg, #FFF5F7, #FFE4E1);
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(255, 107, 157, 0.3);
  max-width: 450px;
  width: 100%;
  padding: 40px 30px;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ヘッダー */
.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sakura-deep);
  margin-bottom: 5px;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* タブ切り替え */
.auth-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 2px solid rgba(255, 182, 193, 0.3);
  margin-bottom: 30px;
}

.auth-tab {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.auth-tab.active {
  color: var(--sakura-deep);
  font-weight: 600;
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sakura-accent);
  border-radius: 2px;
}

.auth-tab:hover {
  color: var(--sakura-accent);
}

/* フォーム */
.auth-form {
  animation: fadeIn 0.3s ease-out;
}

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

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.label-icon {
  font-size: 1.1rem;
}

/* 入力フィールド */
.auth-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 182, 193, 0.5);
  border-radius: 15px;
  padding: 15px 20px;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.3s;
}

.auth-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.auth-input:focus {
  outline: none;
  border-color: var(--sakura-accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
  background: rgba(255, 255, 255, 1);
}

/* エラーメッセージ */
.form-error {
  min-height: 24px;
  padding: 8px 12px;
  margin-bottom: 15px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #D32F2F;
  background: rgba(211, 47, 47, 0.1);
  display: none;
}

.form-error.show {
  display: block;
  animation: shake 0.3s ease-in-out;
}

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

/* 送信ボタン */
.auth-submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--sakura-accent), var(--sakura-deep));
  border: none;
  border-radius: 15px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-submit-btn .btn-icon {
  font-size: 1.3rem;
}

/* フッター */
.auth-footer {
  margin-top: 20px;
  text-align: center;
}

.auth-link {
  color: var(--sakura-accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.auth-link:hover {
  color: var(--sakura-deep);
  text-decoration: underline;
}

.auth-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 説明テキスト */
.auth-description {
  margin-top: 30px;
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 182, 193, 0.3);
}

.auth-desc-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.auth-desc-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* レスポンシブ */
@media (max-width: 480px) {
  .auth-card {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .auth-title {
    font-size: 1.75rem;
  }

  .auth-input {
    padding: 13px 16px;
    font-size: 0.95rem;
  }

  .auth-submit-btn {
    padding: 14px;
    font-size: 1rem;
  }
}

/* ローディング状態 */
.auth-submit-btn.loading::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}
