@charset "utf-8";

/* ========================
   リセット・基本設定
======================== */
*{
  margin: 0;
  padding: 0;
}

.login-wrapper * {
  box-sizing: border-box; 
}

/* ========================
   ラッパー・コンテナ
======================== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1369b8 0%, #0d5394 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  "Helvetica Neue", Arial, sans-serif;
  justify-content: center;
  box-sizing: border-box;
}



.login-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(54, 54, 94, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
  text-align: center;
  padding: 40px 30px;
  animation: slideUp 0.6s ease-out;
}


/* ========================
   ヘッダー
======================== */
.login-header {
  margin-bottom: 10px;
}

.logo h1 {
  font-size: 32px;
  color: #1369b8;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 16px;
  color: #8898aa;
}
.login-note {
  font-size: 12px;
  color: #7c7b7b;
  margin-top: 6px;
  line-height: 1.6;
}

.no-wrap {
  white-space: nowrap;
}


/* ========================
   フォーム
======================== */


.login-form {
  text-align: left;
  max-width: 100%;
}

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

.form-group input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 2px solid #e6ebf1;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: #1369b8;
  box-shadow: 0 0 0 3px rgba(19, 105, 184, 0.1);
}

.form-group input::placeholder {
  color: #aab7c4;
  font-weight: 400;
}

.form-group.error input {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* ========================
   パスワード欄（👁）
======================== */
.password-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
  width: 100%;
  padding-right: 40px;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
}

.caps-warning {
  font-size: 0.85rem;
  color: #d9534f;
}

/* ========================
   Remember Me
======================== */

.remember-group {
  margin: 20px 0;
  text-align: left;
}

.remember-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  user-select: none;
 
}

.remember-checkbox input[type="checkbox"] {
 display: none;
}

.checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 4px;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.remember-checkbox:hover input ~ .checkmark {
  border-color: #1369b8;
}

.remember-checkbox input:checked ~ .checkmark {
  background-color: #1369b8;
  border-color: #1369b8;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.remember-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.remember-checkbox .checkmark:after {
  left: 4px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ========================
   ボタン
======================== */
.login-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #1369b8, #0d5394);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease,transform 0.3s ease;
  margin-top: 10px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(19, 105, 184, 0.4);
  background: linear-gradient(135deg, #0d5394, #083d70);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 10px rgba(19, 105, 184, 0.4);
}

/* ========================
   エラーメッセージ
======================== */
.error-message {
  background: #fff5f5;
  color: #e53e3e;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #feb2b2;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

/* ========================
   アニメーション
======================== */


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

svg, img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================
   レスポンシブ対応
======================== */
@media (max-width: 768px) {
  .login-container {
    padding: 30px 24px;
  }

  .logo h1 {
    font-size: 30px;
  }

  .form-group input,
  .login-btn {
    height: 48px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
  }

  .login-container {
    padding: 20px 14px;
    max-width: 80%;
  }

  .logo h1 {
    font-size: 26px;
  }

  .login-note {
    font-size: 11.5px;
    max-width: 95%;
    padding: 0 8px;
    text-align: center;
  }

  .form-group input,
  .login-btn {
    height: 44px;
    font-size: 14px;
  }

  .error-message {
    font-size: 13px;
    padding: 10px 12px;
  }

  .remember-checkbox {
    font-size: 13px;
  }

  .password-toggle {
    width: 28px;
    height: 28px;
    right: 6px;
  }

  .password-toggle svg {
    width: 16px;
    height: 16px;
  }
}
