/* =========================================================
   FORGOT PASSWORD PAGE (LIGHT)
   File: /forgot-password.css
   Creative Hyü Support Hub
========================================================= */

:root{
  --fp-bg: #ffffff;
  --fp-text: #111111;
  --fp-muted: rgba(0,0,0,.60);

  --fp-card: #ffffff;
  --fp-border: rgba(0,0,0,.10);
  --fp-border-soft: rgba(0,0,0,.08);
  --fp-shadow: 0 10px 26px rgba(0,0,0,.08);

  --fp-accent: #6e2ebc;
  --fp-accent-soft: rgba(110,46,188,.10);
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--fp-bg);
  color: var(--fp-text);
}

/* Wrapper */
.fp-wrap{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 18px;
}

/* Card */
.fp-card{
  width: 100%;
  max-width: 520px;
  background: var(--fp-card);
  border: 1px solid var(--fp-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--fp-shadow);
}

/* Header */
.fp-head{
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--fp-border-soft);
}

.fp-head h1{
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.fp-head p{
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--fp-muted);
  line-height: 1.4;
}

/* Body */
.fp-body{
  padding: 16px 18px 18px;
}

/* Flash */
.fp-flash{
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--fp-border);
  background: rgba(110,46,188,.06);
}

.fp-flash.is-ok{ border-color: rgba(34,197,94,.25); }
.fp-flash.is-error{ border-color: rgba(239,68,68,.25); }

/* Label */
.fp-label{
  font-size: 13px;
  font-weight: 600;
}

/* Input */
.fp-input{
  margin-top: 6px;
  border: 1px solid var(--fp-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0,0,0,.02);
}

.fp-input input{
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--fp-text);
  font-size: 14px;
  font-weight: 600;
}

/* Help */
.fp-help{
  margin: 10px 0 12px;
  font-size: 12px;
  color: var(--fp-muted);
}

/* Methods */
.fp-methods{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.fp-methods label{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--fp-border);
  background: rgba(110,46,188,.06);
}

.fp-methods input{
  accent-color: var(--fp-accent);
}

/* Button */
.fp-btn{
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--fp-accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.fp-btn:hover{ filter: brightness(.98); }

/* Links (desktop style: left + right) */
.fp-links{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  gap: 16px;
}

.fp-links a{
  color: var(--fp-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap; /* prevents ugly breaks */
}

.fp-links a:hover{ text-decoration: underline; }

/* =========================================================
   FIX: FLASH LINK OVERLAP (long token wrapping)
========================================================= */
.fp-flash{
  overflow: hidden;                 /* prevents any weird overpaint */
}

.fp-flash,
.fp-flash *{
  white-space: normal !important;   /* kill any inherited nowrap */
}

.fp-flash a,
.fp-flash .fp-testlink{
  display: block;                   /* forces new line */
  margin-top: 6px;
  max-width: 100%;
  line-height: 1.35;

  /* THE REAL FIX */
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fp-flash a{
  text-decoration: underline;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 480px){
  .fp-wrap{
    padding: 18px 14px;
  }

  .fp-head h1{
    font-size: 20px;
  }

  .fp-methods{
    flex-direction: column;
  }

  /* Keep bottom links like desktop (one row) */
  .fp-links{
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 14px !important;
  }

  .fp-links a{
    font-size: 12.5px;
  }
}