/* =========================================================
   ReelHunter / pages/forgot-password.css
   Page layer: forgot password / reset link request page.
========================================================= */

  :root{
    --text:#0f172a;
    --muted:#64748b;

    --primary:#615fff;
    --primary-2:#8a63ff;

    --success:#0f9f6e;
    --danger:#dc2626;

    --border:#eadfd3;
    --card:#ffffff;

    --shadow-sm:0 8px 22px rgba(15,23,42,.05);
    --shadow-md:0 18px 44px rgba(15,23,42,.08);
    --shadow-lg:0 30px 80px rgba(15,23,42,.12);

    --tr:.18s ease;
  }

  *{
    box-sizing:border-box;
  }

  html,
  body{
    margin:0;
    padding:0;
    min-height:100%;
    font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color:var(--text);
    background:
      radial-gradient(circle at 12% 8%, rgba(97,95,255,.14), transparent 28%),
      radial-gradient(circle at 88% 12%, rgba(138,99,255,.12), transparent 24%),
      radial-gradient(circle at 50% 100%, rgba(217,119,6,.08), transparent 30%),
      linear-gradient(180deg, #fffdf8 0%, #fffaf1 100%);
    -webkit-text-size-adjust:100%;
    overflow-x:hidden;
  }

  button,
  input,
  a{
    font:inherit;
  }

  [hidden]{
    display:none !important;
  }

  img{
    max-width:100%;
  }

  .recovery-page{
    min-height:100dvh;
    display:grid;
    grid-template-rows:auto 1fr;
  }

  .auth-topbar{
    position:sticky;
    top:0;
    z-index:20;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:18px clamp(14px, 3vw, 34px);
    background:rgba(255,253,248,.72);
    border-bottom:1px solid rgba(234,223,211,.62);
    backdrop-filter:blur(18px) saturate(140%);
    -webkit-backdrop-filter:blur(18px) saturate(140%);
  }

  .brand-link{
    min-height:48px;
    padding:7px 12px;
    border-radius:17px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.76);
    border:1px solid rgba(255,255,255,.78);
    box-shadow:var(--shadow-sm);
    text-decoration:none;
  }

  .brand-link img{
    display:block;
    width:auto;
    max-width:145px;
    max-height:34px;
    object-fit:contain;
  }

  .auth-login-link{
    min-height:42px;
    padding:0 15px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#3344d3;
    font-size:13px;
    font-weight:950;
    background:linear-gradient(135deg, rgba(97,95,255,.10), rgba(138,99,255,.07));
    border:1px solid rgba(97,95,255,.14);
    box-shadow:0 10px 22px rgba(97,95,255,.07);
    transition:transform var(--tr), box-shadow var(--tr), background var(--tr);
  }

  .auth-login-link:hover{
    transform:translateY(-1px);
    background:linear-gradient(135deg, rgba(97,95,255,.14), rgba(138,99,255,.10));
    box-shadow:0 14px 28px rgba(97,95,255,.10);
  }

  .recovery-main{
    width:100%;
    min-height:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:clamp(18px, 4vw, 54px);
  }

  .recovery-wrap{
    width:min(100%, 980px);
    display:grid;
    grid-template-columns:minmax(0, 1fr);
    gap:18px;
  }

  .recovery-hero{
    text-align:center;
  }

  .auth-kicker{
    width:max-content;
    max-width:100%;
    min-height:32px;
    margin:0 auto 14px;
    padding:0 12px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:rgba(97,95,255,.08);
    border:1px solid rgba(97,95,255,.12);
    color:#4f46e5;
    font-size:11px;
    font-weight:950;
    letter-spacing:.08em;
    text-transform:uppercase;
  }

  .auth-kicker__dot{
    width:8px;
    height:8px;
    border-radius:999px;
    background:linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow:0 0 0 4px rgba(97,95,255,.08);
  }

  .recovery-title{
    margin:0;
    color:#0f172a;
    font-size:clamp(34px, 5vw, 58px);
    line-height:.96;
    letter-spacing:-.06em;
    font-weight:950;
  }

  .recovery-subtitle{
    max-width:620px;
    margin:16px auto 0;
    color:#64748b;
    font-size:clamp(14px, 1.7vw, 16px);
    line-height:1.65;
    font-weight:700;
  }

  .recovery-card{
    position:relative;
    width:min(100%, 560px);
    margin:0 auto;
    padding:24px;
    border-radius:30px;
    border:1px solid rgba(255,255,255,.74);
    background:
      radial-gradient(circle at top right, rgba(97,95,255,.10), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,251,244,.96));
    box-shadow:var(--shadow-lg);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    overflow:hidden;
  }

  .recovery-card::before{
    content:"";
    position:absolute;
    right:-80px;
    top:-80px;
    width:220px;
    height:220px;
    border-radius:999px;
    background:linear-gradient(135deg, rgba(97,95,255,.16), rgba(138,99,255,.06));
    pointer-events:none;
  }

  .recovery-card__inner{
    position:relative;
    z-index:1;
  }

  .mini-flow{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:8px;
    margin-bottom:18px;
  }

  .mini-step{
    min-height:76px;
    padding:12px;
    border-radius:18px;
    border:1px solid #eadfd3;
    background:rgba(255,255,255,.70);
    box-shadow:0 8px 18px rgba(15,23,42,.035);
  }

  .mini-step span{
    display:block;
    margin-bottom:7px;
    color:#4f46e5;
    font-size:10px;
    font-weight:950;
    letter-spacing:.08em;
    text-transform:uppercase;
  }

  .mini-step strong{
    display:block;
    color:#122033;
    font-size:12px;
    line-height:1.25;
    font-weight:950;
    letter-spacing:-.02em;
  }

  .auth-form{
    display:grid;
    gap:14px;
  }

  .field{
    display:grid;
    gap:8px;
  }

  .field__label{
    font-size:12px;
    font-weight:900;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:#607486;
  }

  .field__control{
    position:relative;
  }

  .field__input{
    width:100%;
    min-height:54px;
    border-radius:17px;
    border:1px solid #e4dacd;
    background:linear-gradient(180deg,#fffefc,#fffdfa);
    color:#0f172a;
    font-size:15px;
    font-weight:750;
    padding:0 15px;
    outline:none;
    transition:border-color var(--tr), box-shadow var(--tr);
  }

  .field__input:focus{
    border-color:rgba(97,95,255,.36);
    box-shadow:0 0 0 5px rgba(97,95,255,.08);
  }

  .submit-btn{
    min-height:54px;
    border:0;
    border-radius:17px;
    cursor:pointer;
    color:#fff;
    font-size:14px;
    font-weight:950;
    background:linear-gradient(135deg,var(--primary),var(--primary-2));
    box-shadow:0 18px 34px rgba(97,95,255,.20);
    transition:transform var(--tr), box-shadow var(--tr), opacity var(--tr);
    position:relative;
    overflow:hidden;
  }

  .submit-btn::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(120deg, transparent 25%, rgba(255,255,255,.22) 50%, transparent 75%);
    transform:translateX(-130%);
    transition:transform .8s ease;
  }

  .submit-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 24px 42px rgba(97,95,255,.25);
  }

  .submit-btn:hover::before{
    transform:translateX(130%);
  }

  .submit-btn:disabled{
    opacity:.68;
    cursor:not-allowed;
    transform:none;
    box-shadow:none;
  }

  .auth-note{
    min-height:20px;
    font-size:13px;
    line-height:1.5;
    color:#64748b;
    font-weight:700;
  }

  .auth-note.is-error{
    color:var(--danger);
  }

  .auth-note.is-success{
    color:var(--success);
  }

  .success-panel{
    margin-top:16px;
    padding:16px;
    border-radius:22px;
    border:1px solid rgba(15,159,110,.18);
    background:
      radial-gradient(circle at top right, rgba(15,159,110,.10), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,255,252,.86));
    box-shadow:0 14px 30px rgba(15,159,110,.06);
  }

  .success-panel__top{
    display:grid;
    grid-template-columns:40px 1fr;
    gap:12px;
    align-items:start;
  }

  .success-panel__icon{
    width:40px;
    height:40px;
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(15,159,110,.12);
    color:#0f9f6e;
    font-size:20px;
    font-weight:950;
  }

  .success-panel__title{
    margin:0;
    color:#122033;
    font-size:15px;
    line-height:1.25;
    font-weight:950;
    letter-spacing:-.02em;
  }

  .success-panel__text{
    margin:6px 0 0;
    color:#64748b;
    font-size:13px;
    line-height:1.55;
    font-weight:700;
  }

  .secondary-btn{
    min-height:44px;
    margin-top:14px;
    border-radius:15px;
    border:1px solid #dcd5cb;
    background:#fff;
    color:#122033;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    text-decoration:none;
    font-size:13px;
    font-weight:950;
    box-shadow:0 8px 18px rgba(15,23,42,.04);
    transition:transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  }

  .secondary-btn:hover{
    transform:translateY(-1px);
    border-color:rgba(97,95,255,.22);
    box-shadow:0 14px 26px rgba(15,23,42,.07);
  }

  .auth-footer{
    width:min(100%, 560px);
    margin:0 auto;
    padding:13px 16px;
    border-radius:18px;
    text-align:center;
    color:#64748b;
    font-size:13px;
    font-weight:700;
    background:rgba(255,255,255,.68);
    border:1px solid #eadfd3;
    box-shadow:0 8px 18px rgba(15,23,42,.035);
  }

  .auth-footer a{
    color:#485dff;
    font-weight:950;
    text-decoration:none;
    display:inline-flex;
    margin-left:4px;
  }

  .toast{
    position:fixed;
    right:18px;
    bottom:18px;
    z-index:10000;
    background:#111827;
    color:#fff;
    padding:12px 14px;
    border-radius:12px;
    box-shadow:0 12px 30px rgba(0,0,0,.22);
    font-weight:800;
    opacity:0;
    transform:translateY(8px);
    pointer-events:none;
    transition:opacity var(--tr), transform var(--tr);
  }

  .toast.is-visible{
    opacity:1;
    transform:translateY(0);
  }

  @media (max-width:760px){
    .auth-topbar{
      padding:10px;
    }

    .brand-link{
      min-height:44px;
      padding:6px 10px;
    }

    .brand-link img{
      max-width:118px;
    }

    .auth-login-link{
      min-height:38px;
      padding:0 12px;
      font-size:12px;
    }

    .recovery-main{
      align-items:flex-start;
      padding:18px 10px 10px;
    }

    .recovery-wrap{
      gap:12px;
    }

    .recovery-hero{
      text-align:left;
      padding:0 6px;
    }

    .auth-kicker{
      margin-left:0;
    }

    .recovery-title{
      font-size:32px;
    }

    .recovery-subtitle{
      margin-top:12px;
      font-size:14px;
      line-height:1.55;
    }

    .recovery-card{
      padding:16px;
      border-radius:24px;
    }

    .mini-flow{
      grid-template-columns:1fr;
      gap:8px;
    }

    .mini-step{
      min-height:auto;
      padding:12px;
    }

    .field__input,
    .submit-btn{
      min-height:50px;
      border-radius:15px;
    }

    .auth-footer{
      font-size:12px;
      border-radius:16px;
    }

    .toast{
      left:10px;
      right:10px;
      bottom:10px;
      text-align:center;
    }
  }

  @media (max-width:420px){
    .recovery-title{
      font-size:29px;
    }

    .recovery-subtitle{
      font-size:13px;
    }

    .auth-kicker{
      font-size:10px;
    }

    .field__label{
      font-size:11px;
    }
  }

  @media (max-height:680px) and (min-width:761px){
    .auth-topbar{
      padding-top:10px;
      padding-bottom:10px;
    }

    .recovery-main{
      align-items:flex-start;
      padding-top:20px;
      padding-bottom:20px;
    }

    .recovery-title{
      font-size:38px;
    }

    .recovery-subtitle{
      margin-top:10px;
    }

    .recovery-card{
      padding:18px;
    }

    .mini-step{
      min-height:68px;
      padding:10px;
    }
  }

  @media (prefers-reduced-motion: reduce){
    *,
    *::before,
    *::after{
      animation:none !important;
      transition:none !important;
      scroll-behavior:auto !important;
    }
  }