/* Hostinger auth 화면 스타일 참고 (https://auth.hostinger.com/en/login) */
:root {
  --auth-bg: #f4f5f9;
  --auth-card: #ffffff;
  --auth-text: #1d1e20;
  --auth-muted: #6b7280;
  --auth-border: #e5e7eb;
  --auth-primary: #673de6;
  --auth-primary-hover: #5025d1;
  --auth-primary-active: #4520b8;
  --auth-danger: #dc2626;
  --auth-radius: 12px;
  --auth-shadow: 0 8px 24px rgba(29, 30, 32, 0.08);
}

.auth-page {
  min-height: 100vh;
  margin: 0;
  background: var(--auth-bg);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--auth-text);
}

.auth-brand {
  padding: 24px 32px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--auth-text);
  text-decoration: none;
}

.auth-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #673de6 0%, #8b5cf6 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.auth-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px 48px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--auth-card);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  padding: 32px 28px;
}

.auth-card h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}

.auth-desc {
  margin: 0 0 24px;
  text-align: center;
  font-size: 14px;
  color: var(--auth-muted);
  line-height: 1.5;
}

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  background: #fff;
  color: var(--auth-text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 16px;
}

.auth-google-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(29, 30, 32, 0.06);
}

.auth-google-btn:active {
  background: #f3f4f6;
}

.auth-social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  background: #fff;
  cursor: not-allowed;
  opacity: 0.55;
  padding: 0;
}

.auth-social-btn svg {
  width: 22px;
  height: 22px;
}

.auth-social-google { background: #fff; }
.auth-social-facebook { background: #1877f2; border-color: #1877f2; }
.auth-social-facebook svg { fill: #fff; }
.auth-social-github { background: #24292f; border-color: #24292f; }
.auth-social-github svg { fill: #fff; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 24px;
  color: var(--auth-muted);
  font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-border);
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--auth-text);
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input-wrap input:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.15);
}

.auth-toggle-pw {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--auth-muted);
  border-radius: 8px;
}

.auth-toggle-pw:hover {
  background: #f3f4f6;
}

.auth-forgot {
  display: block;
  margin: 4px 0 20px;
  font-size: 14px;
  color: var(--auth-primary);
  text-decoration: none;
}

.auth-forgot:hover {
  text-decoration: underline;
}

.auth-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  background: #fef2f2;
  color: var(--auth-danger);
  border: 1px solid #fecaca;
}

.auth-alert-info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.auth-turnstile {
  margin-bottom: 20px;
  min-height: 65px;
}

.auth-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--auth-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.auth-submit:hover {
  background: var(--auth-primary-hover);
}

.auth-submit:active {
  background: var(--auth-primary-active);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-footer-links {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.auth-footer-links a {
  color: var(--auth-primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer-links a:hover {
  text-decoration: underline;
}

.auth-footer-links p {
  margin: 8px 0 0;
  color: var(--auth-muted);
}

.auth-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--auth-muted);
  text-align: center;
}
