/* 全体 */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background-color: #0f1115;
  color: #e6e6e6;

  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* コンテナ */
.login-container {
  width: 320px;
  padding: 32px;
  background: #161a22;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* タイトル */
h1 {
  text-align: center;
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* フォーム */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 入力欄 */
input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #2a2f3a;
  background-color: #0f131a;
  color: #ffffff;
  outline: none;
  transition: 0.2s;
}

input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

/* ボタン */
button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

button:active {
  transform: scale(0.98);
}

/* セパレータ */
.separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: #9ca3af;
  font-size: 12px;
}

/* 左線 */
.separator::before,
.separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #2a2f3a;
}

/* テキストと線の間隔 */
.separator::before {
  margin-right: 12px;
}

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

.alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  
  background: #ff4d4f;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  font-weight: 500;
  
  opacity: 1;
  transition: all 0.3s ease;
  z-index: 9999;
}

.alert.hidden {
  opacity: 0;
  transform: translate(-50%, -20px);
  pointer-events: none;
}

.alert.success {
  background: #1890ff; /* 青系 */
}
