/* NEO49-WEB/frontend/member/member.css */

:root {
  --primary: #0f9d58;
  --primary-dark: #0b7a43;
  --gold: #facc15;
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #1f2937;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Prompt", "Kanit", system-ui, sans-serif;
  background: linear-gradient(180deg, #0f9d58 0%, #064e3b 100%);
  min-height: 100vh;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Layout ---------- */
.auth-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 16px;
}

.auth-card {
  background: var(--card);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

/* ---------- Header ---------- */
.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.auth-logo span {
  background: var(--gold);
  color: #064e3b;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 14px;
}

/* ---------- Form ---------- */
.auth-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-size: 15px;
}

input:focus {
  outline: none;
  border-color: var(--primary);
}

/* password */
.password-box {
  position: relative;
}

.password-box span {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
}

/* ---------- Buttons ---------- */
button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

button:hover {
  background: var(--primary-dark);
}

button.secondary {
  background: #e5e7eb;
  color: #111827;
}

/* ---------- Footer ---------- */
.auth-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

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

/* ---------- Steps ---------- */
.step {
  display: none;
}

.step.active {
  display: block;
}

/* ---------- Error ---------- */
#error {
  text-align: center;
  color: #ef4444;
  margin-top: 10px;
}

/* ---------- Popup ---------- */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.popup.show {
  display: flex;
}

.popup-box {
  background: white;
  padding: 28px;
  border-radius: 16px;
  text-align: center;
}

@media (max-width: 420px) {
  body {
    align-items: flex-start;
    padding: 24px 12px;
  }

  .auth-wrapper {
    padding: 0;
    max-width: 100%;
  }

  .auth-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .auth-logo {
    font-size: 20px;
  }

  .auth-title {
    font-size: 18px;
  }

  input {
    padding: 12px 14px;
    font-size: 14px;
  }

  button {
    padding: 12px;
    font-size: 15px;
  }

  .auth-footer {
    font-size: 13px;
  }
}


