/* =====================================================================
   DOROO PARTNER — Auth design system
   Shared by login.html, signup.html, forgot_password.html,
   reset_password.html. One file, one source of truth for the look.
   ===================================================================== */

:root{
  --bg:#F5F7FA;
  --ink:#0E1A26;
  --ink-soft:#5B6B7A;
  --ink-faint:#94A3B0;
  --line:rgba(14,26,38,.09);
  --line-strong:rgba(14,26,38,.14);

  --blue:#1E88E5;
  --blue-deep:#0B4DA1;
  --blue-bright:#29B6F6;
  --gold:#E8A23A;
  --gold-light:#FFD874;
  --mint:#1FCF8C;
  --danger:#D64545;

  --surface:rgba(255,255,255,.74);
  --surface-solid:#FFFFFF;

  --radius-xl:28px;
  --radius-lg:18px;
  --radius-md:14px;
  --radius-sm:10px;

  --font-display:'Manrope','Tajawal',-apple-system,BlinkMacSystemFont,sans-serif;
  --font-body:-apple-system,BlinkMacSystemFont,'Inter','Tajawal',sans-serif;

  --ease:cubic-bezier(.22,.8,.24,1);
  --ease-spring:cubic-bezier(.34,1.36,.64,1);
}

*{box-sizing:border-box;}

html{-webkit-text-size-adjust:100%;}

body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  position:relative;
  overflow-x:hidden;
}

/* ---------------------------------------------------------------------
   Ambient aurora backdrop — three soft brand-colored blooms that drift
   very slowly. Quiet by default; only really noticeable over time.
   Respects reduced-motion.
   --------------------------------------------------------------------- */
.aurora{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}
.aurora span{
  position:absolute;
  border-radius:50%;
  filter:blur(70px);
  opacity:.5;
  will-change:transform;
}
.aurora span:nth-child(1){
  width:520px;height:520px;top:-160px;left:-120px;
  background:radial-gradient(circle at 30% 30%, var(--blue-bright), transparent 70%);
  animation:drift1 26s ease-in-out infinite alternate;
}
.aurora span:nth-child(2){
  width:460px;height:460px;bottom:-180px;right:-140px;
  background:radial-gradient(circle at 60% 40%, var(--gold-light), transparent 70%);
  opacity:.4;
  animation:drift2 32s ease-in-out infinite alternate;
}
.aurora span:nth-child(3){
  width:380px;height:380px;top:40%;left:50%;
  background:radial-gradient(circle at 50% 50%, var(--mint), transparent 70%);
  opacity:.22;
  animation:drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1{ from{transform:translate(0,0) scale(1);} to{transform:translate(60px,40px) scale(1.08);} }
@keyframes drift2{ from{transform:translate(0,0) scale(1);} to{transform:translate(-50px,-30px) scale(1.1);} }
@keyframes drift3{ from{transform:translate(-50%,-50%) scale(1);} to{transform:translate(-46%,-54%) scale(1.15);} }

@media (prefers-reduced-motion: reduce){
  .aurora span{animation:none;}
}

/* ---------------------------------------------------------------------
   Shell + card
   --------------------------------------------------------------------- */
.wrap{
  position:relative;
  z-index:1;
  max-width:440px;
  margin:0 auto;
  padding:56px 24px 40px;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

/* Wider screens: the 440px card reads as cramped with all that spare
   viewport either side, so let it breathe a bit more as space allows. */
@media(min-width:640px){
  .wrap{max-width:480px;}
}
@media(min-width:1024px){
  .wrap{max-width:540px;padding-top:64px;}
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-display);
  font-weight:800;
  font-size:19px;
  letter-spacing:-.01em;
  margin-bottom:28px;
  opacity:0;
  animation:rise .5s var(--ease) forwards;
}
.logo img{width:30px;height:30px;border-radius:8px;display:block;}
.logo .word-doroo{background:linear-gradient(90deg,var(--blue-deep),var(--blue-bright));-webkit-background-clip:text;background-clip:text;color:transparent;}
.logo .word-partner{background:linear-gradient(90deg, var(--gold), #ff74c7 55%, var(--blue-bright));-webkit-background-clip:text;background-clip:text;color:transparent;}

.card{
  background:var(--surface);
  backdrop-filter:blur(28px) saturate(180%);
  -webkit-backdrop-filter:blur(28px) saturate(180%);
  border:1px solid rgba(255,255,255,.7);
  border-radius:var(--radius-xl);
  padding:28px 25px;
  box-shadow:
    0 1px 1px rgba(14,26,38,.03),
    0 12px 32px -12px rgba(11,77,161,.18),
    0 24px 64px -28px rgba(14,26,38,.16);
  opacity:0;
  transform:translateY(14px);
  animation:rise .6s .08s var(--ease) forwards;
}

@keyframes rise{
  to{opacity:1;transform:translateY(0);}
}

h1{
  font-family:var(--font-display);
  font-size:23px;
  font-weight:800;
  letter-spacing:-.02em;
  margin:0 0 6px;
}
.sub{color:var(--ink-soft);margin:0 0 26px;font-size:14.5px;line-height:1.55;}

/* ---------------------------------------------------------------------
   Form controls
   --------------------------------------------------------------------- */
label{
  display:block;
  font-size:12.5px;
  font-weight:600;
  color:var(--ink-soft);
  margin:10px 0 7px;
  letter-spacing:.01em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input:not([type]){
  width:100%;
  padding:12.5px 15px;
  border:1px solid var(--line-strong);
  border-radius:var(--radius-md);
  font-size:15px;
  font-family:inherit;
  background:rgba(255,255,255,.75);
  color:var(--ink);
  transition:border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
input::placeholder{color:var(--ink-faint);}
input:hover{border-color:rgba(14,26,38,.2);}
input:focus{
  outline:none;
  border-color:var(--blue-bright);
  background:#fff;
  box-shadow:0 0 0 4px rgba(41,182,246,.16);
}

button[type="submit"], .btn-primary{
  width:100%;
  margin-top:24px;
  padding:14px;
  border:none;
  border-radius:var(--radius-md);
  background:linear-gradient(135deg,var(--blue-deep),var(--blue) 65%,var(--blue-bright));
  background-size:160% 160%;
  background-position:0% 50%;
  color:#fff;
  font-size:15px;
  font-weight:700;
  letter-spacing:-.005em;
  cursor:pointer;
  box-shadow:0 8px 20px -8px rgba(11,77,161,.55);
  transition:transform .18s var(--ease-spring), box-shadow .18s var(--ease), background-position .4s var(--ease), opacity .18s var(--ease);
}
button[type="submit"]:hover:not(:disabled), .btn-primary:hover:not(:disabled){
  background-position:100% 50%;
  box-shadow:0 10px 26px -8px rgba(11,77,161,.62);
  transform:translateY(-1px);
}
button[type="submit"]:active:not(:disabled), .btn-primary:active:not(:disabled){
  transform:translateY(0) scale(.985);
  box-shadow:0 4px 14px -6px rgba(11,77,161,.5);
}
button:disabled{opacity:.55;cursor:not-allowed;box-shadow:none;transform:none;}

/* ---------------------------------------------------------------------
   Custom checkbox (terms acceptance)
   --------------------------------------------------------------------- */
.check-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:20px;
  cursor:pointer;
  user-select:none;
}
.check-row input[type="checkbox"]{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}
.check-box{
  flex:0 0 auto;
  width:20px;height:20px;
  margin-top:1px;
  border-radius:7px;
  border:1.6px solid var(--line-strong);
  background:rgba(255,255,255,.8);
  display:flex;align-items:center;justify-content:center;
  transition:border-color .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
}
.check-box svg{
  width:12px;height:12px;
  stroke:#fff;
  stroke-width:3;
  fill:none;
  stroke-dasharray:16;
  stroke-dashoffset:16;
  transition:stroke-dashoffset .22s var(--ease);
}
.check-row input:checked + .check-box{
  background:linear-gradient(135deg,var(--blue-deep),var(--blue-bright));
  border-color:transparent;
  box-shadow:0 3px 10px -3px rgba(11,77,161,.55);
}
.check-row input:checked + .check-box svg{stroke-dashoffset:0;}
.check-row input:focus-visible + .check-box{box-shadow:0 0 0 4px rgba(41,182,246,.22);}
.check-text{font-size:13px;line-height:1.5;color:var(--ink-soft);padding-top:1px;}
.check-text a{color:var(--blue-deep);text-decoration:none;font-weight:600;}
.check-text a:hover{text-decoration:underline;}

/* ---------------------------------------------------------------------
   Feedback, footer, misc
   --------------------------------------------------------------------- */
.err{
  color:var(--danger);
  font-size:13px;
  margin-top:14px;
  display:none;
  background:rgba(214,69,69,.08);
  border:1px solid rgba(214,69,69,.18);
  border-radius:var(--radius-sm);
  padding:10px 12px;
}
.ok{
  color:#0E9A66;
  font-size:13px;
  margin-top:14px;
  display:none;
  background:rgba(31,207,140,.1);
  border:1px solid rgba(31,207,140,.22);
  border-radius:var(--radius-sm);
  padding:10px 12px;
}

.foot{
  text-align:center;
  margin-top:22px;
  font-size:14px;
  color:var(--ink-soft);
  opacity:0;
  animation:rise .6s .16s var(--ease) forwards;
}
.foot a{color:var(--blue-deep);text-decoration:none;font-weight:600;}
.foot a:hover{text-decoration:underline;}

.legal-foot{
  text-align:center;
  margin-top:16px;
  font-size:12px;
  color:var(--ink-faint);
  opacity:0;
  animation:rise .6s .22s var(--ease) forwards;
}
.legal-foot a{color:var(--ink-faint);text-decoration:none;}
.legal-foot a:hover{color:var(--blue-deep);}
.legal-foot .dot{margin:0 7px;opacity:.6;}

.is-hidden{display:none;}

.check-icon{
  width:46px;height:46px;border-radius:50%;
  background:rgba(31,207,140,.14);color:var(--mint);
  display:flex;align-items:center;justify-content:center;margin-bottom:16px;
}
.check-icon svg{width:22px;height:22px;}
.warn-icon{
  width:46px;height:46px;border-radius:50%;
  background:rgba(214,69,69,.12);color:var(--danger);
  display:flex;align-items:center;justify-content:center;margin-bottom:16px;
}
.warn-icon svg{width:22px;height:22px;}

.link-quiet{
  display:block;text-align:right;margin:8px 0 0;
  font-size:12.5px;color:var(--blue-deep);text-decoration:none;font-weight:600;
}
.link-quiet:hover{text-decoration:underline;}

.hint{color:var(--ink-faint);margin:8px 0 0;font-size:12px;line-height:1.5;}

@media (max-width:400px){
  .card{padding:28px 22px;}
  .wrap{padding:40px 18px 32px;}
}

/* Wide screens: give the card a little more breathing room to match
   its now-wider .wrap (see the @media rules near .wrap above). */
@media(min-width:1024px){
  .card{padding:36px 40px;}
  h1{font-size:26px;}
}
