/* ============================
   Cleansly Auth Page Styles
   ============================ */

/* Container: centres the card and limits its width */
.cly-auth-container {
  max-width: 480px !important;  /* restrict to 480px */
  margin: 0 auto;
  
}

/* Auth card styling */
.cly-auth-card {
  position: relative;
  background: #fff;
  padding: 24px !important; 
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Title */
.cly-auth-title {
  margin-top: 0;
  font-size: 25px !important;
  line-height: 1.2;
}

/* Form element spacing */
.cly-auth-card input[type="text"],
.cly-auth-card input[type="email"],
.cly-auth-card input[type="password"],
.cly-auth-card input[type="number"],
.cly-auth-card select,
.cly-auth-card textarea {
  margin-bottom: 15px !important;
  width: 100%;
  box-sizing: border-box;
}

/* Submit button full width */
.cly-auth-card input[type="submit"],
.cly-auth-card button[type="submit"] {
  width: 100% !important;
  display: block;
  margin-top: 10px;
}

/* Render TML messages as plain text (no box) */
.cly-auth-card .tml-message {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 0px 0 !important;
  color: inherit !important;     /* inherit normal body text colour */
  box-shadow: none !important;
}

/* Clean up unordered lists (e.g., “Back to login”) */
.cly-auth-card ul {
  list-style: none !important;   /* removes bullet dots */
  margin: 0 !important;          /* removes left indent */
  padding: 0 !important;         /* removes left padding */
}

/* Add spacing between list items if there are multiple */
.cly-auth-card ul li {
  margin-bottom: 10px !important; /* 10px gap between links or messages */
}

/* Optional: container and body helpers */
.cly-auth-body {
  width: 100%;
}

/* Make the whole page white, edge-to-edge, only on this template */
body.cly-auth,
body.cly-auth #page,
body.cly-auth .site-content,
body.cly-auth .ast-page-builder-template,
body.cly-auth .ast-plain-container,
body.cly-auth .ast-separate-container .ast-article-single {
  background: #fff !important;
}

/* Remove boxed/article padding if Astra separate-container is adding gutters */
body.cly-auth .ast-separate-container .ast-article-single {
  padding: 0 !important;
  box-shadow: none !important;
}

/* Ensure your wrapper fills the viewport nicely */
body.cly-auth .cly-auth-wrap {
  min-height: 100vh;          /* reach full height */
  display: flex;
  background: transparent;     /* keep wrapper transparent so body white shows */
  margin: 0;
}

/* Keep your card sizing as you like */
body.cly-auth .cly-auth-container {
  max-width: 480px;
  margin: 24px 0;
}

/* Page-level flex column */
body.cly-auth #page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* Let the main content grow/shrink as needed */
body.cly-auth .site-content {
  flex: 1 0 auto;
}

/* Footer stays at the bottom naturally */
body.cly-auth .site-footer {
  flex-shrink: 0;
}

/* Remove the forced full-height on the auth wrap */
body.cly-auth .cly-auth-wrap {
  min-height: auto;   /* or just delete this rule if you’d added it */
  display: block;     /* no need for flex here unless you want it */
  margin: 0;
  /* Removed clamp padding top/bottom and all padding values */
}

/* Give Astra's header a soft grey background only on auth pages */
body.cly-auth header.site-header,
body.cly-auth .main-header-bar,
body.cly-auth .ast-primary-header-bar {
  background-color: #f5f5f5 !important;
}

/* Remove Astra's flex layout inside auth pages */
body .ast-container {
 
  display: block !important;

}

/* Hide the default "Lost your password?" block inside the TML login form */
.tml-login .tml-links {
  display: none !important;
}

.tml-login {
    margin-bottom: 1.75em;
}

/* Add left/right padding only on mobile for Astra container */
@media (max-width: 768px) {
  .ast-separate-container .ast-container,
  .hashcontent .ast-container {
    padding-left: 1em !important;
    padding-right: 1em !important;
  }
}

.cly-auth-subtext {
    margin-bottom: 1.2em !important;
}

