/* style.css - VIS Account 公式テーマ（Googleアカウント完全再現） */
:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #eef2ff;
  --sidebar-bg: #1e293b;
  --sidebar-hover: #334155;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --success: #22c55e;
  --danger: #ef4444;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --shadow: 0 10px 25px rgba(0,0,0,0.06);
}

* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ログイン・登録画面用（中央カード） */
.auth-container {
  width: 100%;
  max-width: 460px;
}
.auth-card {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 1px solid var(--border);
}
.auth-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 48px 40px;
  text-align: center;
}
.auth-header .logo {
  width: 90px;
  height: 90px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  backdrop-filter: blur(10px);
}
.auth-header .logo i {
  font-size: 48px;
}
.auth-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}
.auth-header p {
  font-size: 16px;
  opacity: 0.9;
}
.auth-body {
  padding: 40px;
}
.input-group {
  position: relative;
  margin-bottom: 24px;
}
.input-group i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 20px;
  z-index: 10;
}
.input-group input {
  width: 100%;
  padding: 18px 18px 18px 56px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  background: #f8fafc;
  transition: all 0.3s ease;
}
.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.15);
}
.btn-primary {
  width: 100%;
  padding: 18px;
  background: linear-gradient(to right, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(102,126,234,0.4);
}
.auth-footer {
  text-align: center;
  padding: 24px 40px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-light);
}
.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

.error {
  background: #fee2e2;
  color: #991b1b;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid #fca5a5;
  font-weight: 500;
}
.success {
  background: #f0fdf4;
  color: #166534;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #86efac;
}
.success code {
  display: block;
  margin: 20px 0;
  padding: 20px;
  background: white;
  border-radius: 12px;
  font-size: 22px;
  font-family: 'Courier New', monospace;
  border: 2px dashed var(--success);
}

/* ダッシュボード用（前回のスタイルも統合済み） */
.sidebar { width: 280px; background: var(--sidebar-bg); color: white; position: fixed; top: 0; left: 0; bottom: 0; padding: 24px 0; overflow-y: auto; z-index: 100; }
/* .logo h1 { font-size: 26px; font-weight: 900; background: linear-gradient(135deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; padding: 0 32px 32px; border-bottom: 1px solid #334155; margin-bottom: 32px; } */
.logo h1 { font-size: 26px; font-weight: 900; background: #fff;/* background: linear-gradient(135deg, #fff, #008DCF); */ -webkit-background-clip: text; -webkit-text-fill-color: transparent; padding: 0 32px 32px; border-bottom: 1px solid #334155; margin-bottom: 32px; }
.nav-item { padding: 14px 32px; display: flex; align-items: center; gap: 16px; font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.2s; color: #fff; text-decoration: none;}
.nav-item:hover { background: var(--sidebar-hover); }
/* .nav-item.active { background: #6366f1; border-left: 4px solid #a78bfa; } */
.nav-item.active { background: #6366f1; border-left: 4px solid #fff; }
.nav-item i { width: 24px; font-size: 18px; }
.nav-item a { color: white; text-decoration: none; display: block; width: 100%; }

.main { margin-left: 280px; flex: 1; padding: 40px; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.header h2 { font-size: 28px; font-weight: 700; }
.user-info { display: flex; align-items: center; gap: 16px; background: white; padding: 12px 24px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.avatar { width: 48px; height: 48px; background: linear-gradient(135deg, #667eea, #764ba2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 18px; }

.card { background: white; border-radius: 16px; box-shadow: var(--shadow); padding: 32px; margin-bottom: 32px; border: 1px solid var(--border); }
.card-title { font-size: 20px; font-weight: 600; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; color: var(--text); }

.connected-accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }
.account-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.3s; }
.account-item.connected { border-color: var(--success); box-shadow: 0 8px 25px rgba(34,197,94,0.12); }
.account-header { padding: 24px; display: flex; align-items: center; gap: 20px; background: #f8fafc; }
.account-header i { font-size: 40px; }
.account-info h3 { font-size: 18px; font-weight: 600; }
.account-info p { font-size: 14px; color: var(--text-light); margin-top: 4px; }
.account-status { margin-left: auto; padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.status-connected { background: #dcfce7; color: #166534; }
.status-disconnected { background: #fee2e2; color: #991b1b; }
.account-body { padding: 20px 24px; background: white; text-align: right; }
.btn { padding: 11px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; }
.btn-connect { background: var(--primary); color: white; }
.btn-disconnect { background: var(--danger); color: white; }
.btn:hover { transform: translateY(-2px); }

/* レスポンシブ */
@media (max-width: 1024px) {
  .sidebar { width: 80px; padding: 24px 0; }
  .logo h1, .nav-item span { display: none; }
  .nav-item { justify-content: center; }
  .main { margin-left: 80px; padding: 20px; }
}

.rarity-legendary { filter: drop-shadow(0 0 10px #e6cf00); }
.rarity-epic { filter: drop-shadow(0 0 8px #d9d9d9); }
.rarity-rare { filter: drop-shadow(0 0 6px #60a5fa); }

.link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.flex {
  display: flex;
  align-items: center;
}
