/* ==========================================================================
   LIFE BRAND - SALESFORCE LWR EXPERIENCE CLOUD LOGIN PAGE CSS (FINAL CLEAN)
   ========================================================================== */

/* Brand tokens */
:root {
  --life-primary-blue: #1e4a7b;
  --life-dark-blue:    #0d2b43;
  --life-light-blue:   #c9d8e8;
  --life-band-blue:    #5f86a9;
  --life-white:        #fff;
  --life-text:         #2f2f2f;
  --life-off-white:    #F8F9FA;
  --life-border-color: #e2e8f0;
  --life-radius-lg:    12px;
  --life-radius-md:    8px;
  --life-shadow:       0 4px 20px rgba(0,0,0,.08);
  --life-shadow-hover: 0 8px 32px rgba(30,74,123,.15);
}

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================== */

html, body { height: 100%; margin: 0; padding: 0; }

body {
  font-family: 'Salesforce Sans','Helvetica Neue',Helvetica,Arial,sans-serif;
  color: var(--life-text);
}

/* Make sure the parent containers are centered */
.login-container,
.siteLoginContainer,
.comm-login-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 100vh !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 20px;
}

/* Your existing form styles (keep these) */
.login-form, 
.siteLoginForm, 
.comm-login-form {
  max-width: 400px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--life-border-color);
  border-radius: var(--life-radius-lg);
  box-shadow: var(--life-shadow);
  padding: 25px !important;
  margin: 0 auto; /* Add this to center the form within its container */
}

.login-form:hover,
.siteLoginForm:hover,
.comm-login-form:hover {
  box-shadow: var(--life-shadow-hover);
}

/* Headings (scoped only) */
.siteLoginContainer h1,
.siteLoginContainer h2,
.comm-login-container h1,
.comm-login-container h2 {
  text-align: center;
  color: var(--life-dark-blue);
  font-weight: 700;
  margin-bottom: 30px;
  font-size: 1.75rem;
}

.siteLoginContainer p.description,
.comm-login-container p.description {
  text-align: center;
  color: var(--life-band-blue);
  margin-bottom: 25px;
  font-size: .95rem;
  line-height: 1.4;
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

.slds-form-element { margin-bottom: 20px; }

label {
  display: block;
  color: var(--life-dark-blue);
  font-weight: 600;
  margin-bottom: 6px;
  font-size: .875rem;
}

.slds-input,
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 8px 16px;
  border: 2px solid var(--life-border-color);
  border-radius: var(--life-radius-md);
  background-color: var(--life-white);
  color: var(--life-text);
  font-size: 1rem;
  transition: all .2s ease;
  box-sizing: border-box;
}

.slds-input:focus,
input:focus {
  outline: none;
  border-color: var(--life-primary-blue);
  box-shadow: 0 0 0 3px rgba(30,74,123,.12);
}

/* Validation */
.slds-has-error .slds-input { border-color: #e74c3c; }

/* ==========================================================================
   PRIMARY BUTTONS (Login + Reset)
   ========================================================================== */

.siteLoginForm .slds-button_brand,
.comm-login-form .slds-button_brand,
.siteLoginForm button[type="submit"],
.comm-login-form button[type="submit"],
.comm-forgot-password__submit-button {
  width: 100%;
  background: linear-gradient(135deg, var(--life-primary-blue) 0%, var(--life-dark-blue) 100%) !important;
  border: none !important;
  border-radius: var(--life-radius-md) !important;
  color: var(--life-white) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  height: 48px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 2px 8px rgba(30,74,123,.30);
}

.siteLoginForm .slds-button_brand:hover,
.comm-login-form .slds-button_brand:hover,
.comm-forgot-password__submit-button:hover {
  background: linear-gradient(135deg, var(--life-dark-blue) 0%, #082033 100%) !important;
  box-shadow: 0 4px 16px rgba(30,74,123,.40);
}

/* ==========================================================================
   CANCEL + RESET LAYOUT (Forgot Password)
   ========================================================================== */

.comm-forgot-password__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Cancel button */
.comm-forgot-password__cancel-button {
  flex: 1;
  background: transparent !important;
  border: 2px solid var(--life-primary-blue) !important;
  color: var(--life-primary-blue) !important;
  border-radius: var(--life-radius-md) !important;
  font-weight: 600 !important;
  height: 48px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  cursor: pointer;
}

.comm-forgot-password__cancel-button:hover,
.comm-forgot-password__cancel-button:focus {
  background: rgba(30,74,123,.08) !important; /* subtle tint */
  color: var(--life-primary-blue) !important;
  border-color: var(--life-primary-blue) !important;
  box-shadow: 0 2px 8px rgba(30,74,123,.10) !important;
}

/* Reset button inside forgot password */
.comm-forgot-password__submit-button {
  flex: 1;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 480px) {
  .comm-forgot-password__actions {
    flex-direction: column;
  }
  .comm-forgot-password__actions .comm-forgot-password__cancel-button,
  .comm-forgot-password__actions .comm-forgot-password__submit-button {
    width: 100% !important;
    margin: 0 0 12px 0 !important;
  }
}
/* ==========================================================================
   SIMPLE CENTERING + WHITE BACKGROUND
   ========================================================================== */

   html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #fff; /* keep background pure white */
  }
  
  .login-container,
  .siteLoginContainer,
  .comm-login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff; /* pure white background */
    padding: 20px;
  }
  
  .login-form,
  .siteLoginForm,
  .comm-login-form {
    max-width: 400px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--life-border-color);
    border-radius: var(--life-radius-lg);
    box-shadow: var(--life-shadow);
    padding: 40px;
  }
  