/* =====================================================
   認証ページ スタイル
   Asana風のミニマルデザイン
   ===================================================== */

/* -----------------------------------------------------
   リセット & ベース
   ----------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.auth-page {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1e1f21;
  background: linear-gradient(135deg, #f8f8f8 0%, #eaeaea 100%);
  min-height: 100vh;
}

/* -----------------------------------------------------
   コンテナ
   ----------------------------------------------------- */
.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

/* -----------------------------------------------------
   カード
   ----------------------------------------------------- */
.auth-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 2.5rem;
  transition: box-shadow 0.2s ease;
}

.auth-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

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

.auth-logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f06a6a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.auth-subtitle {
  font-size: 0.9375rem;
  color: #6d6e6f;
  font-weight: 400;
}

/* -----------------------------------------------------
   アラート
   ----------------------------------------------------- */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.auth-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.auth-alert--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.auth-alert__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
}

.auth-alert__content {
  font-size: 0.875rem;
  line-height: 1.5;
}

.auth-alert__content p {
  margin: 0;
}

.auth-alert__content p + p {
  margin-top: 0.25rem;
}

/* -----------------------------------------------------
   フォーム
   ----------------------------------------------------- */
.auth-form__group {
  margin-bottom: 1.25rem;
}

.auth-form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e1f21;
  margin-bottom: 0.5rem;
}

.auth-form__input {
  width: 100%;
  height: 44px;
  padding: 0 0.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #1e1f21;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form__input::placeholder {
  color: #9ca3af;
}

.auth-form__input:focus {
  border-color: #f06a6a;
  box-shadow: 0 0 0 3px rgba(240, 106, 106, 0.1);
}

.auth-form__password-wrapper {
  position: relative;
}

.auth-form__password-wrapper .auth-form__input {
  padding-right: 3rem;
}

.auth-form__password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: transparent;
  border: none;
  color: #6d6e6f;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-form__password-toggle:hover {
  color: #1e1f21;
}

.auth-form__password-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.auth-form__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.auth-form__checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.auth-form__checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.auth-form__checkbox input:checked + .auth-form__checkbox-mark {
  background: #f06a6a;
  border-color: #f06a6a;
}

.auth-form__checkbox input:checked + .auth-form__checkbox-mark::after {
  display: block;
}

.auth-form__checkbox input:focus + .auth-form__checkbox-mark {
  box-shadow: 0 0 0 3px rgba(240, 106, 106, 0.1);
}

.auth-form__checkbox-mark {
  position: relative;
  width: 1.125rem;
  height: 1.125rem;
  background: #ffffff;
  border: 1.5px solid #e5e5e5;
  border-radius: 3px;
  margin-right: 0.5rem;
  transition: all 0.2s ease;
}

.auth-form__checkbox-mark::after {
  content: "";
  display: none;
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-form__checkbox-label {
  font-size: 0.875rem;
  color: #6d6e6f;
  user-select: none;
}

.auth-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #f06a6a;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.auth-form__submit:hover {
  background: #e85555;
}

.auth-form__submit:active {
  transform: scale(0.99);
}

.auth-form__submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(240, 106, 106, 0.3);
}

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

.auth-footer p {
  font-size: 0.8125rem;
  color: #6d6e6f;
}

/* -----------------------------------------------------
   レスポンシブ
   ----------------------------------------------------- */
@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
  .auth-logo {
    font-size: 1.5rem;
  }
}
