@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  font: 16px "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  background: #211e1b;
  color: #faf7f2;
}
* { box-sizing: border-box; }
body { margin: 0; }
.entry {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-items: start;
  padding: 32px clamp(20px, 7vw, 112px);
}
.sign-in {
  width: min(100%, 440px);
  padding: clamp(24px, 4vw, 42px);
}
.sign-in-inner {
  text-align: right;
  text-shadow: 0 1px 2px #000, 0 2px 7px #000, 0 0 15px #000b;
}
.logo {
  display: block;
  width: 180px;
  height: 123px;
  object-fit: cover;
  object-position: center;
  margin: 0 auto 25px;
  border-radius: 12px;
}
h1 { font-size: clamp(32px, 4vw, 43px); line-height: 1.2; margin: 0 0 7px; }
.subtitle { color: #fff; margin: 0 0 25px; }
form, label { display: grid; gap: 8px; }
form { gap: 17px; }
label { font-weight: 600; }
input, button { font: inherit; }
input {
  width: 100%;
  background: transparent;
  border: 1px solid #fffd;
  border-radius: 9px;
  padding: 12px 14px;
  color: #fff;
  text-shadow: inherit;
  box-shadow: 0 1px 4px #0008;
}
button {
  margin-top: 7px;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 12px;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  text-shadow: inherit;
  box-shadow: 0 1px 4px #0008;
}
button:hover { box-shadow: 0 1px 4px #0008, inset 0 0 0 1px #fff; }
:is(input, button):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.error {
  border: 1px solid #fffd;
  border-radius: 8px;
  color: #fff;
  padding: 8px 12px;
}
.photo {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url('/wefaq-background.webp') center / cover no-repeat;
}
@media (max-width: 670px) {
  .entry {
    place-items: center;
    padding: 24px 15px;
  }
  .photo { background-position: 39% center; }
  .sign-in { padding: 22px 24px 30px; }
  .logo { width: 155px; height: 106px; margin-bottom: 17px; }
  .subtitle { margin-bottom: 20px; }
}
@media (max-height: 640px) {
  .entry { padding-block: 16px; }
  .sign-in { padding-block: 20px; }
  .logo { width: 130px; height: 89px; margin-bottom: 13px; }
  h1 { font-size: clamp(29px, 4vw, 35px); }
  .subtitle { margin-bottom: 16px; }
  form { gap: 12px; }
  input, button { padding-block: 9px; }
}
.verse {
  margin: 0;
  padding: .65rem clamp(1rem, 4vw, 4rem);
  background: #153e33;
  color: #fff;
  border-bottom: 2px solid #b5a373;
  font-family: "Traditional Arabic", "Noto Naskh Arabic", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.8;
  text-align: center;
  text-wrap: balance;
}
body { min-height: 100svh; display: flex; flex-direction: column; }
.entry { flex: 1; min-height: auto; }
