/* ============================================
   BookPlatform - Auth Pages (Login / Register)
   Dark theme, centered card layout
   ============================================ */

/* ---------- Base reset for auth pages ---------- */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #0a0a0f;
  font-family: 'Noto Sans KR', sans-serif;
  padding: 2rem 1rem;
}

/* ---------- Card ---------- */
.auth-card {
  width: 100%;
  max-width: 440px;
  background-color: #12121a;
  border: 1px solid #2a2a3a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* ---------- Gradient header ---------- */
.auth-header {
  background: linear-gradient(135deg, #6c5ce7 0%, #a855f7 100%);
  padding: 2rem 2rem 1.75rem;
  text-align: center;
}

/* Auth logo image */
.auth-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
  border-radius: 20px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.auth-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.auth-header p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Form ---------- */
.auth-form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #888;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #1a1a2e;
  border: 1px solid #2a2a3a;
  border-radius: 8px;
  color: #e0e0e0;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.auth-form input:focus {
  outline: none;
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.25);
}

.auth-form input::placeholder {
  color: #555;
}

.auth-form button[type="submit"] {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, #6c5ce7 0%, #a855f7 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.auth-form button[type="submit"]:hover {
  opacity: 0.92;
}

.auth-form button[type="submit"]:active {
  transform: scale(0.98);
}

/* ---------- Error message ---------- */
.auth-error {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #f87171;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ---------- Divider ---------- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #555;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #2a2a3a;
}

/* ---------- Footer / links ---------- */
.auth-footer {
  padding: 1.25rem 2rem 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #888;
}

.auth-footer a {
  color: #a855f7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-footer a:hover {
  color: #6c5ce7;
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .auth-container {
    height: 100vh;
    height: 100dvh;
    min-height: unset;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    padding: 1rem;
  }

  .auth-card {
    border-radius: 12px;
    max-height: 95vh;
    max-height: 95dvh;
    overflow-y: auto;
  }

  .auth-header {
    padding: 1.25rem 1.5rem 1rem;
  }

  .auth-header h1 {
    font-size: 1.25rem;
  }

  .auth-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
  }

  .auth-form {
    padding: 1.25rem;
    gap: 1rem;
  }

  .auth-footer {
    padding: 0.75rem 1.5rem 1.25rem;
  }
}
