/* ===================================================================
   FORGOT PASSWORD PAGE — forgot-password.css
   Only loaded on the /password/restore route via ForgotPasswordAsset.
   Self-contained: duplicates shared .su-* and .lg-* layout/card styles
   to match the login page (no dependency on login.css).
   =================================================================== */

/* ------------------------------------------------------------------ */
/* 1. Layout overrides                                                 */
/* ------------------------------------------------------------------ */

#navbar-block,
#navbar-vue {
  display: none !important;
}

body {
  background: linear-gradient(to bottom right, #3F51B5, #5C6BC0, #7986CB) !important;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.1625px;
}

.page-content,
.page-content.container,
.page-content[class*="container"] {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#content-wrapper,
.content-wrapper {
  padding: 0 !important;
  margin: 0 !important;
}

.content-wrapper .content {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.content-wrapper .content > .row {
  margin: 0 !important;
  width: 100% !important;
}

.content-wrapper .content > .row > .col-md-12 {
  padding: 0 !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* ------------------------------------------------------------------ */
/* 2. Page layout                                                      */
/* ------------------------------------------------------------------ */

.su-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ------------------------------------------------------------------ */
/* 3. Header                                                           */
/* ------------------------------------------------------------------ */

.su-header {
  padding: 16px 24px;
}

.su-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.su-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.su-logo {
  height: 28px;
  width: auto;
  display: block;
}

.su-nav-desktop {
  display: none;
  align-items: center;
  gap: 24px;
}

.su-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 150ms;
}

.su-nav-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.su-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #ffffff;
}

.su-mobile-menu {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.su-mobile-menu .su-nav-link {
  padding: 8px 0;
  display: block;
}

/* ------------------------------------------------------------------ */
/* 4. Main — centered single card                                     */
/* ------------------------------------------------------------------ */

.lg-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 48px;
}

.lg-center {
  width: 100%;
  max-width: 448px;
}

.lg-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ------------------------------------------------------------------ */
/* 5. Card                                                             */
/* ------------------------------------------------------------------ */

.lg-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  width: 100%;
}

.lg-card-header {
  padding: 32px 32px 24px;
  text-align: center;
}

.lg-icon-circle {
  width: 64px;
  height: 64px;
  background: rgba(63, 81, 181, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.lg-title {
  font-size: 24px;
  font-weight: 600;
  color: #232323;
  margin: 0 0 4px;
  line-height: 1.3;
}

.lg-subtitle {
  font-size: 14px;
  color: #666666;
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* 6. Card body / form fields                                         */
/* ------------------------------------------------------------------ */

.lg-card-body {
  padding: 0 32px 32px;
}

.lg-form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#restore-form .form-group {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* 7. Shared field styles                                              */
/* ------------------------------------------------------------------ */

.su-field {
  display: flex;
  flex-direction: column;
}

.su-label {
  font-size: 14px;
  font-weight: 500;
  color: #232323;
  margin-bottom: 6px;
  display: block;
}

.su-input-wrap {
  position: relative;
}

.su-input-icon {
  position: absolute;
  left: 12px;
  top: 25px;
  transform: translateY(-50%);
  color: #999999;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}

.su-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  font-size: 16px;
  color: #232323;
  background: #ffffff;
  transition: all 150ms;
  box-sizing: border-box;
  height: auto;
  line-height: 1.5;
}

.su-input:focus {
  outline: none;
  border-color: #3F51B5;
  box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2);
}

.su-input::placeholder {
  color: #999999;
}

#restore-form .su-input.form-control {
  height: auto;
  line-height: 1.5;
  padding: 12px 16px 12px 40px;
  font-size: 16px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  background: #ffffff;
}

#restore-form .su-input.form-control:focus {
  border-color: #3F51B5;
  box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2);
}

#restore-form .su-input.form-control.is-invalid,
#restore-form .su-input.form-control.error {
  border-color: #EF5350;
  background-image: none !important;
}

.su-field-error {
  font-size: 12px;
  color: #EF5350;
  margin-top: 4px;
  padding: 0;
}

.su-field-error::before {
  display: none !important;
}

#restore-form .invalid-feedback,
#restore-form label.error {
  display: block;
  width: 100%;
  font-size: 12px;
  color: #EF5350;
  margin-top: 4px;
  padding: 0;
}

#restore-form .invalid-feedback::before,
#restore-form label.error::before {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* 8. Submit button                                                    */
/* ------------------------------------------------------------------ */

.lg-submit-btn {
  width: 100%;
  background: #4CAF50;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: background-color 150ms;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.lg-submit-btn:hover {
  background: #43A047;
}

.lg-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.lg-submit-default,
.lg-submit-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lg-submit-btn.is-loading .lg-submit-default {
  display: none;
}

.lg-submit-btn.is-loading .lg-submit-loading {
  display: flex !important;
}

@keyframes su-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.su-spinner {
  animation: su-spin 1s linear infinite;
}

/* ------------------------------------------------------------------ */
/* 9. Success state (after email sent)                                 */
/* ------------------------------------------------------------------ */

.lg-success-block {
  padding: 0 32px 32px;
  text-align: center;
}

.lg-success-icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(76, 175, 80, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.lg-success-icon-wrap svg {
  color: #4CAF50;
}

.lg-success-title {
  font-size: 20px;
  font-weight: 600;
  color: #232323;
  margin: 0 0 8px;
}

.lg-success-text {
  font-size: 14px;
  color: #666666;
  margin: 0 0 24px;
  line-height: 1.5;
}

.lg-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #4CAF50;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms;
}

.lg-back-btn:hover {
  background: #43A047;
  color: #ffffff;
  text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* 10. Back-to-login prompt                                            */
/* ------------------------------------------------------------------ */

.lg-signup-text {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.lg-signup-link {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
}

.lg-signup-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* ------------------------------------------------------------------ */
/* 11. Footer legal text                                               */
/* ------------------------------------------------------------------ */

.lg-footer-text {
  text-align: center;
  margin-top: 32px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.lg-footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.lg-footer-link:hover {
  text-decoration: underline;
  color: rgba(255, 255, 255, 0.8);
}

/* ------------------------------------------------------------------ */
/* 12. Responsive — desktop                                            */
/* ------------------------------------------------------------------ */

@media (min-width: 640px) {
  .su-header {
    padding: 24px;
  }

  .su-logo {
    height: 32px;
  }

  .su-nav-desktop {
    display: flex;
  }

  .su-menu-btn {
    display: none;
  }
}
