/* public/assets/auth.css */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');

:root{
  --bg1:#0b1220;
  --bg2:#0f172a;
  --card: rgba(255,255,255,.08);
  --card2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.14);
  --text:#e5e7eb;
  --muted:#a1a1aa;
  --primary:#60a5fa;
  --primary2:#3b82f6;
  --danger:#fb7185;
  --shadow: 0 20px 70px rgba(0,0,0,.45);
}

*,
*::before,
*::after{ box-sizing: border-box; }

html,body{ height:100%; margin:0; }

body{
  font-family: "Almarai", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 10% 10%, #1d4ed8 0%, transparent 55%),
              radial-gradient(900px 600px at 90% 15%, #7c3aed 0%, transparent 55%),
              linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow-x: hidden;
}

/* خلي كل عناصر الفورم بنفس فونت الصفحة */
button, input, select, textarea{
  font-family: inherit;
  font-size: 100%;
}

/* خلفية “موديرن” بدون صور */
.bg-noise{
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.35) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.28) 0 1px, transparent 1px);
  background-size: 28px 28px, 34px 34px;
  mix-blend-mode: overlay;
}

.wrap{
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px 14px;
}

.card{
  width: min(520px, 100%);
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 22px;
}

.brand{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 50px;
}

.logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(96,165,250,.95), rgba(124,58,237,.9));
  box-shadow: 0 12px 30px rgba(59,130,246,.28);
}

.brand h1{
  font-size: 18px;
  margin: 0;
  letter-spacing: .2px;
}
.brand small{
  color: var(--muted);
  display:block;
  margin-top: 2px;
  font-size: 13px;
}

.alert{
  border: 1px solid rgba(251,113,133,.35);
  background: rgba(251,113,133,.10);
  color: #fecdd3;
  padding: 10px 12px;
  border-radius: 14px;
  margin: 12px 0 0;
}

.form{
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.field label{
  display:block;
  margin-bottom: 7px;
  font-weight: 650;
  color: rgba(229,231,235,.92);
  font-size: 13px;
}

.control{
  position: relative;
}

.input{
  width: 100%;
  padding: 12px 44px 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(2,6,23,.35);
  color: var(--text);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .05s ease;
}

.input::placeholder{ color: rgba(161,161,170,.75); }

.input:focus{
  border-color: rgba(96,165,250,.55);
  box-shadow: 0 0 0 5px rgba(96,165,250,.12);
}

.icon{
  position:absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: .75;
}

.toggle{
  position:absolute;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
}
.toggle:hover{ background: rgba(255,255,255,.10); }

/* زر بنفس ستايل الحقول (Glass) */
.btn{
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;

  border: 1px solid rgba(255,255,255,.18);
  background: rgba(2,6,23,.35);
  color: var(--text);

  font-weight: 800;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease, transform .06s ease;
}

.btn:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(96,165,250,.45);
}

.btn:focus{
  outline: none;
  border-color: rgba(96,165,250,.55);
  box-shadow: 0 0 0 5px rgba(96,165,250,.12);
}

.btn:active{
  transform: translateY(1px);
}

@media (max-width: 420px){
  .card{ padding: 18px; border-radius: 16px; }
  .brand h1{ font-size: 16px; }
}
