/* =====================================================
   THE QURAN CONTEST — CORE THEME
   ===================================================== */

:root{
  --bg1:#fbf7ef;
  --bg2:#f2ecdf;
  --card:#ffffff;
  --ink:#1f2937;
  --muted:#6b7280;
  --accent:#2f6f9f;
  --success:#15803d;
  --radius:22px;
  --shadow:0 14px 34px rgba(0,0,0,.12);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(900px 500px at 15% 5%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(255,255,255,.8), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  min-height:100vh;
  display:grid;
  place-items:center;
  color:var(--ink);
}

/* =====================================================
   CARD LAYOUT
   ===================================================== */

.card,
.login-card{
  width:min(480px, 92%);
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:34px 30px 30px;
}

/* =====================================================
   HEADERS & TEXT
   ===================================================== */

h1{
  margin:0;
  font-size:26px;
  font-weight:800;
  text-align:center;
}

.subtitle{
  margin-top:8px;
  text-align:center;
  font-size:14px;
  color:var(--muted);
}

.footer,
.footer-note{
  margin-top:24px;
  text-align:center;
  font-size:12px;
  color:var(--muted);
}

/* =====================================================
   DIVIDER
   ===================================================== */

.divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:22px 0 18px;
}

.divider::before,
.divider::after{
  content:"";
  flex:1;
  height:1px;
  background:linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,.18),
    transparent
  );
}

.divider span{
  font-size:12px;
  color:var(--muted);
  letter-spacing:.12em;
}

/* =====================================================
   FORMS
   ===================================================== */

form{
  margin-top:20px;
}

.field{
  margin-bottom:16px;
}

label{
  display:block;
  font-size:13px;
  margin-bottom:6px;
  color:var(--muted);
}

input{
  width:100%;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
  font-size:15px;
  outline:none;
}

input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(47,111,159,.15);
}

/* PIN input */
.pin{
  margin:18px auto 10px;
  width:180px;
  font-size:22px;
  text-align:center;
  letter-spacing:.3em;
}

/* =====================================================
   BUTTONS
   ===================================================== */

button{
  width:100%;
  padding:14px;
  border-radius:16px;
  border:none;
  background:var(--accent);
  color:#fff;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(47,111,159,.35);
}

button:hover{
  transform:translateY(-1px);
}

button:active{
  transform:scale(.98);
}

/* =====================================================
   LINKS
   ===================================================== */

.links{
  margin-top:18px;
  display:flex;
  justify-content:space-between;
  font-size:13px;
}

.links a{
  color:var(--accent);
  text-decoration:none;
  font-weight:600;
}

.links a:hover{
  text-decoration:underline;
}

/* =====================================================
   NOTES & INFO BOXES
   ===================================================== */

.note{
  margin-top:18px;
  padding:14px 16px;
  border-radius:16px;
  background:#f8fafc;
  border:1px dashed rgba(0,0,0,.15);
  font-size:13px;
  color:var(--muted);
  line-height:1.6;
}

/* =====================================================
   SEAL
   ===================================================== */

.seal{
  display:grid;
  place-items:center;
  margin-top:10px;
}

.seal .circle{
  width:64px;
  height:64px;
  border-radius:50%;
  border:2px solid rgba(47,111,159,.35);
  display:grid;
  place-items:center;
  font-weight:800;
  color:var(--accent);
  font-size:11px;
  text-align:center;
  line-height:1.1;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.9), #fff);
}

/* =====================================================
   AYAH
   ===================================================== */

.ayah{
  margin-top:22px;
  padding-top:14px;
  border-top:1px dashed rgba(0,0,0,.12);
  text-align:center;
}

.ayah .arabic{
  font-size:18px;
  font-family: "Amiri", "Scheherazade New", serif;
  line-height:1.8;
}

.ayah .translation{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
}

/* =====================================================
   SUCCESS STATE
   ===================================================== */

.success{
  color:var(--success);
  font-size:18px;
  font-weight:800;
  margin-top:6px;
}

.check{
  font-size:46px;
  margin:14px 0;
}
