/* Signup page layout */
body {
  background: #f9f5f1;
}

.signup-page {
  min-height: calc(100vh - 80px); /* space for header */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.signup-container {
  width: 100%;
  max-width: 460px;
  padding: 28px 24px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Typography */
.signup-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  text-align: center;
}

.signup-subtitle {
  margin: 0 0 22px;
  text-align: center;
  font-size: 14px;
  color: #666666;
}

/* Form */
.signup-form {
  margin-bottom: 14px;
}

.input-group {
  margin-bottom: 16px;
}

.input-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #444444;
}

.input-field {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #dddddd;
  font-size: 15px;
  outline: none;
  background: #ffffff;
  box-sizing: border-box;
}

.input-field:focus {
  border-color: #b38754;
  box-shadow: 0 0 0 1px rgba(179, 135, 84, 0.18);
}

/* Password wrapper */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper .input-field {
  padding-right: 70px; /* space for toggle button */
}

.toggle-password-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 13px;
  color: #b38754;
  font-weight: 600;
  cursor: pointer;
}

/* Buttons */
.signup-btn {
  width: 100%;
  margin-top: 4px;
}

/* Footer */
.signup-footer {
  text-align: center;
  font-size: 14px;
  color: #555555;
}

.signup-link {
  margin-left: 4px;
  color: #b38754;
  font-weight: 600;
  text-decoration: none;
}

.signup-link:hover {
  text-decoration: underline;
}

/* Small screens */
@media (max-width: 480px) {
  .signup-container {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .signup-title {
    font-size: 22px;
  }
}

/* =====================================
   DARK MODE — SIGNUP (AMOLED + BLUE/RED)
   Active when body has .dark
===================================== */

body.dark {
  background:#000000;
}

/* Page wrapper */
body.dark .signup-page {
  background:#000000;
}

/* Card */
body.dark .signup-container {
  background:#0b0b0b;
  border:1px solid #1f2937;
  box-shadow:0 0 0 1px rgba(255,255,255,0.04);
}

/* ================= TEXT ================= */

body.dark .signup-title {
  color:#ffffff;
}

body.dark .signup-subtitle {
  color:#9ca3af;
}

body.dark .signup-footer {
  color:#9ca3af;
}

/* ================= INPUTS ================= */

body.dark .input-label {
  color:#e5e7eb;
}

body.dark .input-field {
  background:#050505;
  color:#ffffff;
  border:1px solid #262626;
}

body.dark .input-field::placeholder {
  color:#6b7280;
}

body.dark .input-field:focus {
  border-color:#2563eb; /* 🔵 blue focus */
  box-shadow:0 0 0 2px rgba(37,99,235,0.25);
}

/* ================= PASSWORD TOGGLE ================= */

body.dark .toggle-password-btn {
  color:#60a5fa;
}

body.dark .toggle-password-btn:hover {
  color:#93c5fd;
}

/* ================= BUTTON ================= */

body.dark .signup-btn {
  background:linear-gradient(135deg,#2563eb,#1e40af);
  color:#ffffff;
  border:none;
}

body.dark .signup-btn:hover {
  opacity:0.92;
}

/* ================= LINKS ================= */

body.dark .signup-link {
  color:#93c5fd;
}

body.dark .signup-link:hover {
  color:#bfdbfe;
}

/* ================= ERROR STATE (RED) ================= */

body.dark .input-field.error {
  border-color:#ef4444; /* 🔴 red */
}

body.dark .error-text {
  color:#fca5a5;
}

/* ================= SMOOTH FEEL ================= */

.signup-container,
.input-field,
.signup-btn,
.signup-link,
.toggle-password-btn {
  transition:
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}
