*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f2f2f2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  background: #fff;
  padding: 8px 24px;
  border-bottom: 1px solid #e0e0e0;
}
.header-logo {
  height: 36px;
  width: auto;
  display: block;
}

/* ── Main ── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  width: 500px;
  overflow: hidden;
}

.card-header {
  position: relative;
  width: 100%;
}
.card-header-img {
  display: block;
  width: 100%;
  height: auto;
}
.card-header h1 {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.card-body {
  padding: 20px 40px 28px;
}

.card-title {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 15px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}
.form-group input::placeholder { color: #999; }
.form-group input:focus { border-color: #6b2d8b; }
.form-group.error input { border-color: #c8102e; }
.form-group.error input:focus { border-color: #c8102e; }

.error-msg {
  display: none;
  font-size: 12px;
  color: #c8102e;
  margin-top: 5px;
}
.form-group.error .error-msg { display: block; }

.helper-text {
  font-size: 13px;
  color: #555;
  margin: 6px 0 16px;
}
.helper-text a {
  color: #6b2d8b;
  text-decoration: underline;
  font-weight: 500;
}

.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 44px;
}
.toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 4px;
  display: flex;
  align-items: center;
}
.toggle-pw svg { width: 20px; height: 20px; }

.forgot-link {
  display: block;
  margin: 8px 0 20px;
  font-size: 13px;
  color: #6b2d8b;
  text-decoration: underline;
}

.btn {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  text-align: center;
  text-decoration: none;
}
.btn-primary {
  background: #c8102e;
  color: #fff;
  margin-bottom: 10px;
}
.btn-primary:hover { background: #a50d25; }

.btn-outline {
  background: transparent;
  color: #1a1a1a;
  border: 1.5px solid #ccc;
}
.btn-outline:hover { border-color: #999; }

.biz-text {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #555;
}
.biz-text a {
  color: #6b2d8b;
  text-decoration: underline;
  font-weight: 500;
}
.ext-icon { font-size: 11px; margin-left: 2px; }

/* ── Footer ── */
footer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 24px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
}

.social-links {
  display: flex;
  justify-content: flex-start;
  gap: 28px;
  margin-bottom: 14px;
}
.social-links a {
  color: #444;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.social-links a:hover { color: #6b2d8b; }

.acknowledgement {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #555;
  max-width: 600px;
  margin: 0 0 14px;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copy {
  font-size: 11px;
  font-weight: 700;
  color: #555;
}

.footer-nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 11px;
  font-weight: 700;
  color: #6b2d8b;
  text-decoration: underline;
  padding: 0 4px;
}
.footer-nav span { color: #bbb; font-size: 11px; font-weight: 700; }

.footer-logo {
  height: 36px;
  width: auto;
  display: block;
}

/* ── Toast ── */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 100;
}
.toast.show { opacity: 1; }
