/* accounts-style.css */

/* Accounts Page Styles scoped to .accounts-wrapper */

.accounts-wrapper {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(95, 15, 64, 0.6);
  max-width: 440px;
  width: 100%;
  margin: 60px auto 80px auto;
  padding: 40px 35px;
  box-sizing: border-box;
  font-family: 'League Spartan', sans-serif;
  color: #fdf3dd;
  transition: box-shadow 0.3s ease;
}

.accounts-wrapper:hover {
  box-shadow: 0 12px 40px rgba(95, 15, 64, 0.8);
}

.accounts-wrapper h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
  letter-spacing: 0.07em;
  color: #fdf3dd;
  text-shadow: 0 0 6px rgba(235, 175, 55, 0.8);
}

.accounts-wrapper hr {
  border: none;
  border-top: 1px solid rgba(235, 175, 55, 0.5);
  margin: 36px 0;
  opacity: 0.4;
}

.accounts-wrapper form p {
  margin-bottom: 22px;
}

.accounts-wrapper label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fdf3dd;
  font-size: 16px;
  user-select: none;
}

.accounts-wrapper input[type="text"],
.accounts-wrapper input[type="email"],
.accounts-wrapper input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  box-sizing: border-box;
  outline: none;
  background-color: rgba(122, 51, 104, 0.5);
  color: #fdf3dd;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.12);
}

.accounts-wrapper input[type="text"]:focus,
.accounts-wrapper input[type="email"]:focus,
.accounts-wrapper input[type="password"]:focus {
  background-color: rgba(156, 79, 146, 0.75);
  box-shadow: 0 0 8px rgba(235, 175, 55, 0.8);
}

.accounts-wrapper .button-primary,
.accounts-wrapper input[type="submit"] {
  background-color: #ebaf37;
  color: #5f0f40;
  border: none;
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 12px rgba(235, 175, 55, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.accounts-wrapper .button-primary:hover,
.accounts-wrapper input[type="submit"]:hover {
  background-color: #d69c2a;
  box-shadow: 0 6px 18px rgba(214, 156, 42, 0.8);
}

.accounts-wrapper p {
  text-align: center;
  font-size: 15px;
  color: #fdf3dd;
  user-select: none;
}

.accounts-wrapper p a {
  color: #ebaf37;
  text-decoration: none;
  font-weight: 700;
  transition: text-decoration 0.3s ease;
}

.accounts-wrapper p a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .accounts-wrapper {
    margin: 40px 20px 60px 20px;
    padding: 30px 25px;
    border-radius: 12px;
  }

  .accounts-wrapper h2 {
    font-size: 24px;
    margin-bottom: 22px;
  }

  .accounts-wrapper input[type="text"],
  .accounts-wrapper input[type="email"],
  .accounts-wrapper input[type="password"] {
    font-size: 14px;
    padding: 12px 14px;
  }

  .accounts-wrapper .button-primary,
  .accounts-wrapper input[type="submit"] {
    font-size: 16px;
    padding: 12px 18px;
  }
}
.accounts-page-bg {
  min-height: 100vh;
  padding: 100px 20px;
  background: linear-gradient(135deg, #5f0f40 0%, #2a1a2f 100%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
}
/* === Accounts page: vertical centring + footer visible (August 2024) === */
/* --- Accounts: centre card only on tall viewports, else normal page scroll --- */

/* Make the page a flex‐column so footer sits at bottom by default */
body.page-id-9 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* Always allow page‐level scrolling */
html, body {
  overflow-y: auto !important;
}

/* ONLY when the window is tall: centre the card in the purple wrapper */
@media (min-height: 700px) {
  .accounts-page-bg {
    flex: 1 0 auto !important;
    display: flex !important;
    align-items: center !important;    
    justify-content: center !important;  
    padding: 40px 20px !important;
  }
}

/* Card sizing (always) */
.accounts-page-bg .accounts-wrapper {
  width: 80% !important;
  max-width: 900px !important;
  margin: 0 auto;
}


/* ── REGISTER FORM: two-column & full-width button ── */

/* 1) Side-by-side Username & Email fields */
#registerform p.login-username,
#registerform p.login-password {
  display: inline-block !important;
  vertical-align: top !important;
  width: calc(50% - 12px) !important;
  margin: 0 6px 20px !important;
}

/* 2) Stretch the Register button full-width */
#registerform p.login-submit {
  display: block !important;
  width: 100% !important;
  margin-top: 10px !important;
}
#registerform p.login-submit input[type="submit"] {
  width: 100% !important;
  box-sizing: border-box !important;
}


/* ===== Sign In (already close, just make it consistent) ===== */
#custom-login-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
}
#custom-login-form .login-username,
#custom-login-form .login-password { grid-column: auto; }
#custom-login-form .login-remember,
#custom-login-form .login-showpass { display: flex; align-items: center; gap: 8px; }
#custom-login-form .login-submit { grid-column: 1 / -1; }
#custom-login-form .input { width: 100%; box-sizing: border-box; }
#custom-login-form input[type="submit"] { width: 100%; }

/* ===== Register section ===== */
#loginform {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* two columns: Email | Password */
  gap: 20px;
  align-items: start;
}
#loginform > p { margin: 0; }               /* remove odd spacing */
#loginform label { display: block; margin-bottom: 8px; }
#loginform .input { width: 100%; box-sizing: border-box; }

/* Make the Register button full-width and on its own row */
#loginform p:last-of-type { grid-column: 1 / -1; }
#loginform input[type="submit"].button { width: 100%; display: block; }

/* Optional: ensure consistent input height */
#custom-login-form .input,
#loginform .input {
  padding: 12px 14px;
  line-height: 1.2;
}

/* Make labels block and kill the stray <br> that adds extra line height */
#loginform label { display:block; margin-bottom:8px; }
#loginform label br { display:none; }

/* Two even columns + full‑width Register button */
#loginform { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
#loginform > p { margin:0; }
#loginform > p:last-of-type { grid-column:1 / -1; }

#loginform .input { width:100%; box-sizing:border-box; }

/* If your show‑password script injects a checkbox, give the password input a little bottom space */
#reg_password { margin-bottom:8px; }
