@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root{
  --teal:#3a8d9f;
  --teal-dark:#2e7180;
  --pink:#e8a2ba;

  --bg:#f4f7f8;
  --text:#22313f;
  --muted:#7f8c8d;

  --border: rgba(58,141,159,.16);
  --shadow: 0 18px 45px rgba(0,0,0,.08);

  --radius-lg: 22px;
  --radius-md: 16px;
  --ring: 0 0 0 4px rgba(58,141,159,.14);
}

*{ box-sizing:border-box; font-family:'Tajawal', sans-serif; }
html, body{ height:100%; }

body{
  margin:0;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 70% -10%, rgba(232,162,186,.18), transparent 60%),
    radial-gradient(900px 420px at 15% 0%, rgba(58,141,159,.16), transparent 60%),
    linear-gradient(180deg, #f7fafb 0%, var(--bg) 55%, #f3f7f8 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 22px 14px;
  overflow-x:hidden;
  position:relative;
}

/* Ramadan decor (expects images in assets/img/) */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;

  /* auth.css is in assets/, so img/ is correct */
  background-image:
    url("img/moon.png"),
    url("img/lantern-left.png"),
    url("img/lantern-right.png");

  background-repeat:no-repeat,no-repeat,no-repeat;
  background-position:
    top 16px center,
    top 110px left 10px,
    top 110px right 10px;

  background-size:
    120px,
    130px,
    130px;

  opacity: .9;
  filter: drop-shadow(0 18px 35px rgba(0,0,0,.08));
  z-index:0;
}

/* container */
.container{
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

/* card */
.card{
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}

h2{
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 1.6rem;
  background: linear-gradient(90deg, var(--teal), #f7c85c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted{
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.6;
}

/* notice (errors or success) */
.notice{
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(180,35,24,.25);
  background: #fff5f5;
  color: #b42318;
  margin: 12px 0 14px;
}
.notice ul{ margin:0; padding-right: 18px; }

.notice-success{
  border-color: rgba(22,163,74,.25);
  background: #f0fff4;
  color: #166534;
}

/* form */
.form-group{ margin-bottom: 14px; }

.form-label{
  display:block;
  font-weight: 900;
  color: var(--teal);
  margin-bottom: 8px;
}

.input{
  width:100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 2px solid rgba(0,0,0,.06);
  background: rgba(252,253,254,.95);
  font-size: 1rem;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.input:hover{ border-color: rgba(58,141,159,.22); }

.input:focus{
  outline:none;
  border-color: rgba(58,141,159,.70);
  box-shadow: var(--ring);
  transform: translateY(-1px);
}

.help{
  margin-top: 8px;
  font-size: .92rem;
  color: var(--muted);
}

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding: 14px 18px;
  border-radius: 18px;
  font-weight: 900;
  font-size: 1.05rem;
  text-decoration:none;
  border: 2px solid transparent;
  cursor:pointer;
  user-select:none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.btn-primary{
  background: linear-gradient(180deg, rgba(58,141,159,1) 0%, rgba(46,113,128,1) 120%);
  color:#fff;
  box-shadow: 0 14px 28px rgba(58,141,159,.20);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(58,141,159,.24);
}

.btn-outline{
  background: rgba(255,255,255,.9);
  color: var(--pink);
  border-color: rgba(232,162,186,.65);
  box-shadow: 0 10px 22px rgba(0,0,0,.04);
}
.btn-outline:hover{
  background: rgba(232,162,186,.10);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.06);
}

.row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 520px){
  body::after{
    background-size: 100px, 95px, 95px;
    background-position:
      top 10px center,
      top 110px left -20px,
      top 110px right -20px;
  }
  .row{ grid-template-columns: 1fr; }
  .card{ padding: 18px; }
}

/* focus visible */
:focus-visible{
  outline:none;
  box-shadow: var(--ring);
  border-radius: 14px;
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}
