/* ==============================
   memorius.jp Membership Login Page Styles
   Design tokens inherited from register-free-style.css
============================== */

/* ---- Page Background ---- */
.page-id-34632 {
  background: #faf8f5;
}
.page-id-34632 #content,
.page-id-34632 #design_page2 {
  background: #faf8f5;
}

/* ---- Hide default page title ---- */
.page-id-34632 #page_content > h1.headline,
.page-id-34632 #page_content > .headline {
  display: none;
}

/* ---- Login Section Wrapper ---- */
.ml-section {
  max-width: 480px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  box-sizing: border-box;
}
.ml-section *,
.ml-section *::before,
.ml-section *::after {
  box-sizing: border-box;
}

/* ---- Header ---- */
.ml-header {
  text-align: center;
  margin-bottom: 32px;
}
.ml-header__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #C9A96E;
  margin: 0 0 14px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.ml-header__title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.ml-header__desc {
  font-size: 14px;
  color: #888;
  line-height: 1.8;
  margin: 0;
}

/* ---- Login Form Card ---- */
.ml-card {
  background: #fff;
  border: 1px solid #e5e0d8;
  border-radius: 12px;
  padding: 44px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* ---- SWPM Login Form Overrides ---- */
.ml-card .swpm-login-widget-form {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Labels */
.ml-card .swpm-login-form-inner .swpm-username-label,
.ml-card .swpm-login-form-inner .swpm-password-label {
  margin-bottom: 6px;
}
.ml-card .swpm-login-form-inner .swpm-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  letter-spacing: 0.02em;
}

/* Input Fields */
.ml-card .swpm-login-form-inner .swpm-text-field {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #333;
  background: #faf8f5;
  border: 1px solid #ddd8d0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.ml-card .swpm-login-form-inner .swpm-text-field:focus {
  border-color: #C9A96E;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}
.ml-card .swpm-login-form-inner .swpm-text-field::placeholder {
  color: #bbb;
  font-size: 14px;
}

/* Username/Password input wrappers */
.ml-card .swpm-login-form-inner .swpm-username-input,
.ml-card .swpm-login-form-inner .swpm-password-input {
  margin-bottom: 20px;
}

/* Remember Me */
.ml-card .swpm-login-form-inner .swpm-remember-me {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.ml-card .swpm-login-form-inner .swpm-remember-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: #C9A96E;
  cursor: pointer;
}
.ml-card .swpm-login-form-inner .swpm-rememberme-label {
  font-size: 13px;
  color: #666;
  cursor: pointer;
  font-weight: 400;
}

/* Submit Button */
.ml-card .swpm-login-form-inner .swpm-login-submit {
  margin-bottom: 20px;
}
.ml-card .swpm-login-form-inner .swpm-login-form-submit,
.ml-card .swpm-login-form-inner input[type="submit"] {
  display: block;
  width: 100%;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.08em;
  color: #fff;
  background: #C9A96E;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.28s ease;
  -webkit-appearance: none;
  appearance: none;
}
.ml-card .swpm-login-form-inner .swpm-login-form-submit:hover,
.ml-card .swpm-login-form-inner input[type="submit"]:hover {
  background: #a8854e;
  box-shadow: 0 8px 28px rgba(201,169,110,0.35);
  transform: translateY(-2px);
}
.ml-card .swpm-login-form-inner .swpm-login-form-submit:active,
.ml-card .swpm-login-form-inner input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(201,169,110,0.25);
}

/* Forgot Password & Join Us Links */
.ml-card .swpm-login-form-inner .swpm-forgot-pass-link,
.ml-card .swpm-login-form-inner .swpm-join-us-link {
  text-align: center;
  margin-bottom: 8px;
}
.ml-card .swpm-login-form-inner .swpm-forgot-pass-link a,
.ml-card .swpm-login-form-inner .swpm-join-us-link a {
  color: #C9A96E;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}
.ml-card .swpm-login-form-inner .swpm-forgot-pass-link a:hover,
.ml-card .swpm-login-form-inner .swpm-join-us-link a:hover {
  color: #a8854e;
  text-decoration: underline;
}

/* Action Messages */
.ml-card .swpm-login-form-inner .swpm-login-action-msg {
  text-align: center;
  margin-top: 8px;
}

/* Error / Login Failed messages */
.ml-card .swpm-login-widget-form .swpm-red-box,
.ml-card .swpm-red-box {
  color: #c06040;
  font-size: 13px;
  text-align: center;
  padding: 12px 16px;
  background: #fef6f0;
  border: 1px solid #f0d0c0;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* ---- Footer Links ---- */
.ml-footer {
  text-align: center;
  margin-top: 28px;
}
.ml-footer p {
  font-size: 13px;
  color: #999;
  margin: 0 0 6px;
  line-height: 1.8;
}
.ml-footer a {
  color: #C9A96E;
  text-decoration: none;
  font-weight: 600;
}
.ml-footer a:hover {
  text-decoration: underline;
  color: #a8854e;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 640px) {
  .ml-section {
    padding: 40px 16px 64px;
  }
  .ml-header__title {
    font-size: 22px;
  }
  .ml-card {
    padding: 32px 24px;
    border-radius: 10px;
  }
  .ml-card .swpm-login-form-inner .swpm-text-field {
    padding: 11px 14px;
    font-size: 16px; /* prevent zoom on iOS */
  }
  .ml-card .swpm-login-form-inner .swpm-login-form-submit,
  .ml-card .swpm-login-form-inner input[type="submit"] {
    padding: 14px 20px;
    font-size: 15px;
  }
}
