:root{
  --bg:#0b0b0f;
  --card: rgba(12,12,16,.72);
  --stroke: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --red:#ff2a2a;
  --red2:#ff4d4d;
  --shadow: 0 24px 80px rgba(0,0,0,.55);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.bg{
  position: fixed;
  inset: 0;
  background-image: url("/assets/gym-bg.jpeg"); /* خلفية الجيم */
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: contrast(1.05) saturate(1.05);
}

.overlay{
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 70% 30%, rgba(255,42,42,.18), transparent 60%),
    radial-gradient(900px 600px at 20% 80%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.70), rgba(0,0,0,.78));
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

.wrap{
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px 16px 18px;
}

.card{
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.card__header{
  display:flex;
  gap: 12px;
  align-items:center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 12px;
}

.logo{
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.brand h1{
  margin:0;
  font-size: 18px;
  letter-spacing: .5px;
}
.brand h1 span{
  color: var(--red);
}
.tagline{
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.heroText{
  margin: 10px 0 14px;
}
.heroText h2{
  margin:0;
  font-size: 22px;
}
.heroText p{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.heroText p span{
  color: rgba(255,255,255,.86);
}

.form{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.field__label{
  display:block;
  font-size: 12.5px;
  color: rgba(255,255,255,.78);
  margin-bottom: 6px;
}

.field__control{
  position: relative;
  display:flex;
  align-items:center;
  gap: 8px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 10px 12px;
  transition: .2s ease;
}

.field__control:focus-within{
  border-color: rgba(255,42,42,.55);
  box-shadow: 0 0 0 4px rgba(255,42,42,.12);
}

.icon{
  width: 20px;
  height: 20px;
  display:grid;
  place-items:center;
  color: rgba(255,255,255,.72);
}
.icon svg{ width: 20px; height: 20px; fill: currentColor; opacity:.9; }

input{
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

input::placeholder{ color: rgba(255,255,255,.45); }

.eye{
  border:none;
  background: transparent;
  color: rgba(255,255,255,.65);
  cursor: pointer;
  padding: 2px 4px;
  display:grid;
  place-items:center;
}
.eye svg{ width: 20px; height: 20px; fill: currentColor; }

.row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-top: -2px;
}

.check{
  display:flex;
  align-items:center;
  gap: 8px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}
.check input{
  width: 16px;
  height: 16px;
  accent-color: var(--red);
}

.link{
  color: rgba(255,255,255,.85);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.28);
  padding-bottom: 2px;
}
.link:hover{
  color: white;
  border-bottom-color: rgba(255,42,42,.6);
}

.msg{
  min-height: 18px;
  font-size: 13px;
  color: #ffd0d0;
}

.btn{
  position: relative;
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red2));
  color: white;
  font-family: inherit;
  font-weight: 800;
  letter-spacing: .3px;
  box-shadow: 0 14px 38px rgba(255,42,42,.20);
  transition: transform .12s ease, filter .12s ease;
  overflow:hidden;
}

.btn:hover{ filter: brightness(1.05); }
.btn:active{ transform: translateY(1px); }

.btn__glow{
  position:absolute;
  inset:-40px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 45%);
  transform: translateX(-30%);
  transition: .35s ease;
}
.btn:hover .btn__glow{ transform: translateX(15%); }

.btn.loading{
  opacity: .85;
  pointer-events: none;
}

.hint{
  margin: 6px 0 0;
  text-align: center;
  color: rgba(255,255,255,.55);
  font-size: 12.5px;
}
.hint span{ color: rgba(255,255,255,.82); }

.footer{
  margin-top: 14px;
  color: rgba(255,255,255,.50);
  font-size: 12px;
  text-align: center;
}
