/* ============================================================
   Peptide Lab Chat – login / register / forgot-password styles
   Every value below is Element 1.12.28's own default, so this
   file changes nothing until you edit a value.
   Edit -> save in FileZilla -> Ctrl+Shift+R.
   No !important needed: this file is unlayered, Element's is not.
   ================================ll============================ */


/* ---------- Page background ---------- */
.mx_AuthPage {
  background-color: #2e3649;
}


/* ---------- Card (outer frame: logo panel + white form) ---------- */
.mx_AuthPage_modal {
  background-color: hsla(0, 0%, 96%, 0.9);
  border-radius: 24px;
  margin: 30px auto auto;
}


/* ---------- Left panel with logo ---------- */
.mx_AuthHeader {
  width: 175px;
  padding: 5px;
}

/* Logo in left panel */
.mx_AuthHeaderLogo {
  margin-top: 15px;
  padding: 0 25px;
}
.mx_AuthHeaderLogo img {
  width: 125px;
}

/* ---------- White form area ---------- */
.mx_AuthBody {
  background-color: var(--cpd-color-bg-canvas-default);
  border-radius: 0 24px 24px 0;   /* rounded on the right only */
  color: var(--cpd-color-text-secondary);
  font-size: 0.75rem;
  padding: 10px 10px;
  width: 300px;
}

/* Links inside the form (e.g. "Create an account") */
.mx_AuthBody a:link,
.mx_AuthBody a:visited,
.mx_AuthBody a:hover {
  color: var(--cpd-color-text-action-accent);
  text-decoration: none;
}

/* ---------- "Sign in" / "Create account" title ---------- */
.mx_AuthBody h1 {
  color: var(--cpd-color-text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 8px;
}

/* ---------- Homeserver block ---------- */
.mx_ServerPicker {
  border-bottom: 1px solid rgba(141, 151, 165, 0.2);
  margin-bottom: 14px;
  padding-bottom: 16px;
}
/* "Homeserver" label */
.mx_ServerPicker > h2 {
  margin: 0 0 20px;
}

/* "matrix.peptidelab.life" */
.mx_ServerPicker .mx_ServerPicker_server {
  color: var(--cpd-color-text-primary);
}

/* ---------- "Sign in with" row ---------- */

.mx_Login_type_container {
  color: var(--cpd-color-text-primary);
}
.mx_Login_type_label {
  flex: 1;
}

/* ---------- Fields ---------- */
/* Field labels (float up onto the border when you click in) */
.mx_AuthBody .mx_Field label {
  color: var(--cpd-color-text-secondary);
}

/* Field input text + background.
   If you change this background, change the label background below
   to the same color, or the floating label shows a mismatched patch. */
.mx_AuthBody .mx_Field input,
.mx_AuthBody .mx_Field select {
  background-color: var(--cpd-color-bg-canvas-default);
  color: var(--cpd-color-text-primary);
}
.mx_AuthBody .mx_Field input:focus + label,
.mx_AuthBody .mx_Field input:not(:placeholder-shown) + label {
  background-color: var(--cpd-color-bg-canvas-default);
}

/* Password + confirm password row (register page) */
.mx_AuthBody_fieldRow {
  margin-bottom: 10px;
}

/* ---------- "Forgot password?" link ---------- */
.mx_Login_forgot {
  display: block;
  margin-top: 24px;
}

/* ---------- Sign in / Register button ---------- */
.mx_AuthBody .mx_Login_submit {
  width: 100%;
  height: 32px;
  margin-top: 16px;
  margin-bottom: 24px;
}

/* ---------- "New here? Create an account" ---------- */
.mx_AuthBody_changeFlow {
  display: block;
  text-align: center;
}
.mx_AuthBody_changeFlow > a {
  font-weight: 600;
}

/* ---------- Forgot-password page ---------- */
.mx_AuthBody.mx_AuthBody_forgot-password {
  color: var(--cpd-color-text-primary);
  min-height: 400px;
  padding: 50px 32px;
}

/* ==========================================================
   WELCOME PAGE  (#/welcome)
   Based on the 42 rules exported from the live page.
   ========================================================== */

/* Frosted-glass frame around the welcome card.
   Compound's class name is auto-generated (_glass_xxxxx_N), so we
   match any class containing "_glass_" to survive version changes. 
   #WELCOME
*/

.mx_AuthPage [class*="_glass_"] {
  backdrop-filter: blur(20px);
  background: var(--cpd-color-alpha-gray-400);   /* translucent grey rim */
  border-radius: 36px;
  padding: 12px;                                 /* rim thickness */
}

/* White welcome area inside the frame */
.mx_Welcome {
  background-color: var(--cpd-color-bg-canvas-default);
  padding: 44px 48px 16px;
}

/* Logo */
.mx_DefaultWelcome .mx_DefaultWelcome_logo img {
  height: 150px;
  margin: 0 auto;
}

/* "Welcome to Peptide Lab Chat" color: #1a4f8b */
.mx_DefaultWelcome h1 {
  margin: 16px 0 8px;
  font-size:12px;
  color: #00000;      
}

/* Button area (with the separator line under it) */
.mx_DefaultWelcome .mx_DefaultWelcome_buttons {
  border-bottom: 1px solid var(--cpd-color-separator-primary);
  margin: 24px 0 4px;
  padding-bottom: 16px;
}

/* Both buttons: size and spacing Welcome 380px*/
.mx_DefaultWelcome .mx_DefaultWelcome_buttons a {
  width: 200px;
  margin-bottom: 16px;
  
}

/* Sign in button (primary) */
.mx_DefaultWelcome_buttons a[data-kind="primary"] {
  background: var(--cpd-color-bg-action-primary-rest);
  color: var(--cpd-color-text-on-solid-primary);
}
.mx_DefaultWelcome_buttons a[data-kind="primary"]:hover {
  background: var(--cpd-color-bg-action-primary-hovered);
}

/* Create account button (secondary) */
.mx_DefaultWelcome_buttons a[data-kind="secondary"] {
  background: var(--cpd-color-bg-canvas-default);
  border: 1px solid var(--cpd-color-border-interactive-secondary);
  color: var(--cpd-color-text-primary);
}
.mx_DefaultWelcome_buttons a[data-kind="secondary"]:hover {
  background: var(--cpd-color-bg-subtle-secondary);
}

/* Language dropdown under the buttons */
.mx_Welcome .mx_AuthBody_language {
  width: 120px;
  
}
.mx_AuthBody_language .mx_Dropdown_input {
  color: var(--cpd-color-text-secondary);
  width: 120px;
  margin: 4px 0px 20px 20px;
}


/* ---------- Footer links (bottom of page) ---------- */
.mx_AuthFooter {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  opacity: 0.72;
  padding: 20px 0;
  text-align: center;
}
.mx_AuthFooter a:link,
.mx_AuthFooter a:visited,
.mx_AuthFooter a:hover {
  color: #f4f6fa;
  margin: 0 22px;
}



.mx_AuthBody.mx_AuthBody_forgot-password {
    box-sizing: border-box;
    min-height: 0;
    height: 430px;
    padding: 20px 32px;
    overflow-y: auto;
}


/* Welcome frame height */
.mx_AuthPage:has(.mx_Welcome) [class*="_glass_"] {
    height: 430px;
}

.mx_AuthBody_flex:has(.mx_Register_mainContent) {
    justify-content: flex-start;
    gap: 1px;
}


.mx_AuthPage:has(.mx_Register_mainContent) .mx_AuthPage_modal {
    border: 12px solid var(
        --cpd-color-alpha-gray-400,
        rgba(160, 160, 160, 0.4)
    );
    border-radius: 36px;
    background-clip: padding-box;
    backdrop-filter: blur(20px);
}

.mx_AuthPage:has(.mx_Register_mainContent) .mx_AuthPage_modalContent {
    height: 300px;
    min-height: 0;
}

.mx_AuthPage:has(.mx_Register_mainContent) .mx_AuthBody_flex {
    height: auto;
    min-height: 0;
    padding: 16px;
    gap: 1px;
    justify-content: flex-start;
}
.mx_Register_footerActions .mx_AuthBody_changeFlow .mx_AccessibleButton {
    font-weight: 600;
    display: inline;
    margin: 0;
    padding: 0;
}

.mx_AuthPage_modal.mx_AuthPage_modal_withBlur {
    border: 12px solid var(
        --cpd-color-alpha-gray-400,
        rgba(160, 160, 160, 0.4)
    );
    border-radius: 36px;
    background-clip: padding-box;
    backdrop-filter: blur(20px);
}

.mx_AuthPage_modal_withBlur .mx_AuthHeader {
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    align-self: stretch;
    border-radius: 0;
}
/* !IMPORTANT .mx_AuthPage_modal_withBlur .mx_AuthHeader and .mx_AuthPage_modal_withBlur .mx_AuthPage_modalContent need to match colors */

.mx_AuthPage_modal_withBlur .mx_AuthHeader {
    border-radius: 24px;
    background-color: #ffffff;
}
.mx_AuthPage_modal_withBlur .mx_AuthPage_modalContent
 {
    background-color: #ffffff;
}

.mx_Register_mainContent {
    height: auto;
    min-height: 0;
    flex: none;
}



