/* صفحة تسجيل الطلاب (عمود واحد) */

.reg-body{
  background:
    radial-gradient(1100px 600px at 10% 0%, rgba(16,185,129,.12), transparent 60%),
    radial-gradient(900px 500px at 95% 10%, rgba(245,158,11,.14), transparent 55%),
    linear-gradient(#f7f9fc, #f4f7fb);
  min-height: 100vh;
}

.reg-container{
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 16px;
}

.reg-top{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247,249,252,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(2,6,23,.06);
}

.reg-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.reg-logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(2,6,23,.08);
  box-shadow: 0 10px 30px rgba(2,6,23,.08);
}

.reg-title{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 16px;
}

.reg-sub{
  color: rgba(15,23,42,.65);
  font-size: 12.5px;
  margin-top: 2px;
}

.reg-card{
  margin-top: 16px;
  background: #fff;
  border: 1px solid rgba(2,6,23,.08);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(2,6,23,.08);
  padding: 18px;
}

.reg-card-head h1{
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
}
.reg-card-head p{
  margin: 0;
  color: rgba(15,23,42,.65);
  font-size: 13px;
}

.reg-alert{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,.1);
  background: #fff;
  font-weight: 800;
  font-size: 13px;
}
.reg-alert-danger{
  border-color: rgba(220,38,38,.25);
  background: rgba(220,38,38,.06);
  color: #991b1b;
}
.reg-alert-info{
  border-color: rgba(59,130,246,.25);
  background: rgba(59,130,246,.06);
  color: rgba(15,23,42,.85);
}
.reg-alert-success{
  border-color: rgba(16,185,129,.25);
  background: rgba(16,185,129,.08);
  color: rgba(15,23,42,.85);
}

.reg-form{
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.reg-field label{
  display: block;
  margin-bottom: 6px;
  font-weight: 900;
  font-size: 13px;
}

.reg-input{ position: relative; }

.reg-icon{
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(2,6,23,.03);
  border: 1px solid rgba(2,6,23,.06);
  color: rgba(15,23,42,.75);
}

.reg-input input,
.reg-input select{
  width: 100%;
  padding: 12px 12px;
  padding-inline-start: 56px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,.10);
  background: #fff;
  outline: none;
  font-size: 14px;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.reg-input input:focus,
.reg-input select:focus{
  border-color: rgba(16,185,129,.55);
  box-shadow: 0 0 0 5px rgba(16,185,129,.12);
}

.reg-hint{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(15,23,42,.62);
}

.reg-btn{
  margin-top: 6px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, #16a34a, #10b981);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(16,185,129,.22);
}

.reg-btn:disabled{
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.reg-note{
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(15,23,42,.70);
  font-weight: 800;
  text-align: center;
}

.reg-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.reg-linkbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,.12);
  background:#fff;
  color: rgba(15,23,42,.85);
  text-decoration:none;
  font-weight: 900;
  cursor:pointer;
}

.reg-linkbtn.primary{
  border-color: rgba(16,185,129,.30);
  background: rgba(16,185,129,.10);
}

.reg-footer{
  margin-top: 18px;
  padding: 18px 0 26px;
  color: rgba(15,23,42,.55);
  font-weight: 700;
  font-size: 13px;
}

@media (max-width: 520px){
  .reg-card{ padding: 14px; }
}
/* ===== PATCH: Header hide on scroll + Footer styles ===== */

.reg-top{
  position: relative; /* مش ثابت */
  transition: transform .22s ease, opacity .22s ease;
  will-change: transform, opacity;
}

.reg-top.is-hidden{
  transform: translateY(-120%);
  opacity: 0;
}

.reg-logo{
  color: rgba(15,23,42,.85);
}

.reg-footer{
  text-align: center;
}

.reg-footer-sep{
  height: 1px;
  background: rgba(2,6,23,.10);
  margin: 0 auto 12px;
  width: min(100%, 760px);
}

.reg-footer-lines > div{
  line-height: 1.9;
}

.reg-footer-link{
  font-weight: 900;
  color: #10b981; /* لون مميز */
  text-decoration: none;
  border-bottom: 1px dashed rgba(16,185,129,.45);
  padding-bottom: 1px;
}

.reg-footer-link:hover{
  border-bottom-style: solid;
}