/* ==========================================================================
   Forgot Password Page Stylesheet - Eazy Communications
   Faithfully designed matching Figma node 87:263
   ========================================================================== */

/* Page Wrapper */
.forgot-page {
  min-height: 100vh;
  background-color: var(--color-white, #ffffff);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Top Hero Banner (Spans 100% Full Screen Width)
   Figma Node 87:264: 1440px x 375px with vertical offset -90.86%
   -------------------------------------------------------------------------- */
.forgot-banner {
  width: 100%;
  height: 375px;
  position: relative;
  overflow: hidden;
  background-color: #3b4249;
}

.forgot-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  display: block;
}

/* --------------------------------------------------------------------------
   Main Content Layout (Full Width with Strict 100px Left & 104px Right Padding)
   -------------------------------------------------------------------------- */
.forgot-main {
  width: 100%;
  position: relative;
  flex: 1 0 auto;
}

.forgot-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-left: 100px;
  padding-right: 104px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* Left Column: Brand & Information (Figma Node 153:96, Top: 416px, Left: 100px) */
.forgot-left {
  width: 628px;
  max-width: calc(100% - 560px);
  /* 375px banner + 41px padding = 416px top offset */
  padding-top: 41px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 540px;
  box-sizing: border-box;
}

.forgot-left-top {
  display: flex;
  flex-direction: column;
}

.forgot-logo-link {
  display: inline-block;
  margin-bottom: 23px;
  width: 136px;
  height: 64px;
}

.forgot-logo-img {
  width: 136px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.forgot-hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.forgot-heading {
  font-family: var(--font-heading, 'Questrial', sans-serif);
  font-size: 44px;
  line-height: 1.2;
  color: var(--color-gray-dark, #373737);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.forgot-description {
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-gray-dark, #373737);
}

/* Left Column: Footer & Legal (Figma Node 153:97, Top: 787px) */
.forgot-legal-footer {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.forgot-legal-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.forgot-legal-link {
  font-family: var(--font-heading, 'Questrial', sans-serif);
  font-size: 16px;
  color: var(--primary-cyan, #00aeef);
  text-decoration: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.forgot-legal-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.forgot-copyright {
  font-family: var(--font-heading, 'Questrial', sans-serif);
  font-size: 16px;
  color: var(--color-gray-dark, #373737);
  line-height: normal;
}

/* --------------------------------------------------------------------------
   Right Column: Recovery Card ("Regain Access to Your Account" - Figma Node 87:289)
   Top: 122.5px (375px banner - 252.5px = 122.5px)
   Right Gap: 104px
   Border Radius: 0 (No border radius in design!)
   Box Shadow: None (Flat white surface in design!)
   -------------------------------------------------------------------------- */
.forgot-right {
  width: 519px;
  flex-shrink: 0;
  position: relative;
  /* Top 88px + 40px card padding = 128px below banner, aligning directly with Hero heading on the left */
  margin-top: 0;
  padding-top: 88px;
  padding-bottom: 60px;
}

.forgot-card {
  width: 519px;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--color-white, #ffffff);
  border-radius: 0; /* Strict no border radius as per Figma design */
  box-shadow: none; /* Flat white container as per Figma design */
  border: none;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.forgot-card-title {
  font-family: var(--font-heading, 'Questrial', sans-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--color-gray-dark, #373737);
  text-align: center;
  line-height: 1.2;
}

.forgot-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Form Fields */
.forgot-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.form-label {
  font-family: var(--font-heading, 'Questrial', sans-serif);
  font-size: 16px;
  color: var(--color-gray-dark, #373737);
  font-weight: 400;
  line-height: 1.2;
}

.input-control {
  width: 100%;
  height: 64px;
  border: 2px solid #eeeeee;
  border-radius: var(--radius-sm, 10px);
  padding: 0 16px;
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-gray-dark);
  background: var(--color-white);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.input-control::placeholder {
  color: #b9b9b9;
  font-family: var(--font-heading, 'Questrial', sans-serif);
  font-size: 16px;
}

.input-control:focus {
  border-color: var(--primary-bright, #0094d1);
  box-shadow: 0 0 0 3px rgba(0, 148, 209, 0.12);
}

.input-control.error {
  border-color: #e53935;
}

/* Submit Button */
.btn-reset-submit {
  width: 100%;
  height: 56px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 5px 10px rgba(49, 49, 49, 0.05);
  transition: filter var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-reset-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(40, 104, 178, 0.25);
}

.btn-reset-submit:active {
  transform: translateY(0);
}

/* Footer "Remember your password? Sign In" */
.forgot-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading, 'Questrial', sans-serif);
  font-size: 16px;
  color: var(--color-charcoal, #343434);
  line-height: normal;
}

.forgot-signin-link {
  color: var(--primary-cyan, #00aeef);
  text-decoration: underline;
  transition: opacity var(--transition-fast);
}

.forgot-signin-link:hover {
  opacity: 0.8;
}

/* Form Message Feedback */
.form-feedback {
  display: none;
  font-family: var(--font-heading, 'Questrial', sans-serif);
  font-size: 14px;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
}

.form-feedback.success {
  display: block;
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-feedback.error {
  display: block;
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Intermediate Laptops (1025px - 1300px) */
@media (max-width: 1300px) and (min-width: 1025px) {
  .forgot-grid {
    padding-left: 40px;
    padding-right: 40px;
    column-gap: 32px;
  }

  .forgot-left {
    width: auto;
    max-width: none;
    flex: 1;
  }

  .forgot-right {
    width: 480px;
    flex-shrink: 0;
  }

  .forgot-card {
    width: 100%;
    padding: 32px;
    gap: 32px;
  }

  .forgot-heading {
    font-size: 36px;
  }

  .forgot-description {
    font-size: 18px;
  }
}

/* Tablet & Smaller Screens (<= 1024px) - Clean Centered Responsive Flow */
@media (max-width: 1024px) {
  .forgot-banner {
    height: 300px;
  }

  .forgot-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
    display: block;
  }

  .forgot-grid {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center children horizontally */
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
    gap: 0;
  }

  .forgot-right {
    width: 100%;
    max-width: 519px;
    margin: 40px auto 30px;
    padding-top: 0;
    display: flex;
    justify-content: center;
    order: 1;
    padding-bottom: 0;
    flex-shrink: 1;
  }

  .forgot-card {
    width: 100%;
    max-width: 519px;
    border-radius: 0; /* Keep strict sharp corners */
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    padding: 36px 32px;
  }

  .forgot-left {
    width: 100%;
    max-width: 628px;
    margin: 0 auto;
    order: 2;
    padding-top: 10px;
    padding-bottom: 60px;
    align-items: center;
    text-align: center;
    min-height: auto;
    box-sizing: border-box;
  }

  .forgot-logo-link {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
  }

  .forgot-hero-content {
    align-items: center;
    gap: 20px;
  }

  .forgot-heading {
    font-size: 32px;
    text-align: center;
  }

  .forgot-description {
    font-size: 17px;
    text-align: center;
  }

  .forgot-legal-footer {
    margin-top: 36px;
    align-items: center;
    gap: 24px;
  }

  .forgot-legal-nav {
    justify-content: center;
  }

  .forgot-copyright {
    text-align: center;
  }
}

/* Mobile Devices (<= 600px) */
@media (max-width: 600px) {
  .forgot-banner {
    height: 220px;
  }

  .forgot-grid {
    padding: 0 16px;
  }

  .forgot-right {
    margin-top: 24px;
    margin-bottom: 30px;
    max-width: 100%;
  }

  .forgot-card {
    padding: 24px 18px;
    gap: 24px;
    border-radius: 0;
  }

  .forgot-card-title {
    font-size: 26px;
  }

  .input-control {
    height: 56px;
  }

  .forgot-heading {
    font-size: 26px;
  }

  .forgot-description {
    font-size: 15px;
  }

  .forgot-legal-footer {
    margin-top: 28px;
    gap: 20px;
  }
}
