:root {
  --green: #004b2b;
  --green2: #006536;
  --gold: #f6b800;
  --cream: #fffaf0;
  --text: #122018;
  --muted: #6b7280;
  --line: rgba(0,0,0,.16);
  --shadow: 0 22px 70px rgba(0,0,0,.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fffaf0;
}

body {
  overflow-x: hidden;
}

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 65%, rgba(246,184,0,.07), transparent 22%),
    radial-gradient(circle at 80% 70%, rgba(0,75,43,.08), transparent 22%),
    #fffaf0;
}

.login-hero {
  min-height: 760px;
  position: relative;
  display: grid;
  place-items: start center;
  padding-top: 70px;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,75,43,.94), rgba(0,75,43,.90)),
    radial-gradient(circle at 50% 32%, rgba(246,184,0,.22), transparent 22%),
    linear-gradient(135deg, #003f24, #006536);
  border-bottom-left-radius: 50% 11%;
  border-bottom-right-radius: 50% 11%;
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 24px),
    radial-gradient(circle at 50% 0, transparent 0 36%, rgba(246,184,0,.85) 36.3%, rgba(246,184,0,.85) 37%, transparent 37.3%);
  opacity: .88;
}

.login-hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 0;
  height: 260px;
  opacity: .35;
  background:
    linear-gradient(0deg, rgba(255,255,255,.15), transparent),
    radial-gradient(ellipse at 8% 100%, rgba(255,255,255,.28) 0 18%, transparent 19%),
    radial-gradient(ellipse at 18% 100%, rgba(255,255,255,.24) 0 22%, transparent 23%),
    radial-gradient(ellipse at 92% 100%, rgba(255,255,255,.28) 0 18%, transparent 19%),
    radial-gradient(ellipse at 82% 100%, rgba(255,255,255,.24) 0 22%, transparent 23%);
}

.back-home {
  position: absolute;
  top: 22px;
  left: 26px;
  z-index: 2;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 10px 16px;
}

.login-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.login-logo {
  width: 360px;
  max-width: 72vw;
  height: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 18px 25px rgba(0,0,0,.30));
}

.login-hero h1 {
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1;
  margin: 0 0 24px;
  font-weight: 950;
  text-shadow: 0 7px 18px rgba(0,0,0,.22);
}

.login-hero p {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.45;
  font-weight: 500;
  text-shadow: 0 7px 16px rgba(0,0,0,.22);
}

.login-card-wrap {
  width: min(980px, calc(100% - 36px));
  margin: -205px auto 0;
  position: relative;
  z-index: 5;
  padding-bottom: 36px;
}

.login-card {
  background: rgba(255,255,255,.97);
  border-radius: 28px;
  padding: 62px 66px 48px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.10);
}

.login-lock {
  display: grid;
  grid-template-columns: 1fr 92px 1fr;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
}

.login-lock span {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}

.login-lock img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 24px;
  background: #fff6df;
  border: 1px solid rgba(246,184,0,.22);
  filter: invert(56%) sepia(98%) saturate(701%) hue-rotate(5deg) brightness(97%) contrast(94%);
}

.login-card h2 {
  text-align: center;
  color: var(--green);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 42px;
  font-weight: 950;
}

.field {
  min-height: 112px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 16px;
  border: 1px solid #c9cfd6;
  border-radius: 14px;
  padding: 0 28px;
  margin-bottom: 30px;
  background: #fff;
}

.field > img {
  width: 38px;
  height: 38px;
  filter: invert(22%) sepia(61%) saturate(1236%) hue-rotate(110deg) brightness(88%) contrast(95%);
}

.field input {
  width: 100%;
  height: 70px;
  border: 0;
  outline: none;
  font-size: 32px;
  color: #111827;
  background: transparent;
}

.field input::placeholder {
  color: #8c929c;
}

.password-field {
  grid-template-columns: 58px 1fr 44px;
}

.password-field button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.password-field button img {
  width: 38px;
  height: 38px;
  opacity: .65;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin: 2px 0 48px;
  font-size: 27px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #374151;
}

.remember input {
  display: none;
}

.remember span {
  width: 36px;
  height: 36px;
  border: 3px solid var(--green2);
  border-radius: 7px;
  display: inline-block;
}

.remember input:checked + span {
  background: var(--green2);
  box-shadow: inset 0 0 0 7px #fff;
}

.login-options a,
.login-terms a {
  color: var(--green2);
  font-weight: 900;
  text-decoration: none;
}

.login-submit {
  width: 100%;
  height: 106px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #006536, #003f24);
  color: #fff;
  font-size: 38px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(0,75,43,.24);
}

.login-submit img {
  width: 42px;
  height: 42px;
  filter: invert(72%) sepia(91%) saturate(788%) hue-rotate(1deg) brightness(104%) contrast(101%);
}

.or-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  margin: 50px 0 40px;
  color: #6b7280;
  font-size: 28px;
}

.or-line span {
  height: 1px;
  background: #cfd5dc;
}

.google-login {
  width: 100%;
  height: 92px;
  border: 2px solid var(--green);
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 32px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  cursor: pointer;
}

.google-login strong {
  font-size: 42px;
  font-weight: 950;
  color: #4285f4;
  font-family: Arial, Helvetica, sans-serif;
}

.privacy-note {
  margin: 34px 0 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fffaf0, #f7eedb);
  min-height: 138px;
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 22px;
  padding: 24px 220px;
  box-shadow: 0 12px 35px rgba(0,0,0,.05);
}

.privacy-note img {
  width: 58px;
  height: 58px;
  filter: invert(26%) sepia(41%) saturate(1310%) hue-rotate(109deg) brightness(88%) contrast(94%);
  justify-self: end;
}

.privacy-note h3 {
  margin: 0 0 8px;
  font-size: 30px;
}

.privacy-note p {
  margin: 0;
  color: #4b5563;
  font-size: 22px;
  line-height: 1.45;
}

.login-terms {
  margin: 0;
  text-align: center;
  color: #6b7280;
  font-size: 22px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .login-hero {
    min-height: 560px;
    padding-top: 52px;
  }

  .back-home {
    top: 14px;
    left: 14px;
    font-size: 13px;
  }

  .login-logo {
    width: 230px;
  }

  .login-card-wrap {
    margin-top: -150px;
    width: min(100% - 24px, 980px);
  }

  .login-card {
    padding: 34px 22px 28px;
    border-radius: 22px;
  }

  .login-lock {
    grid-template-columns: 1fr 70px 1fr;
    gap: 12px;
  }

  .login-lock img {
    width: 70px;
    height: 70px;
    padding: 18px;
  }

  .field {
    min-height: 76px;
    grid-template-columns: 34px 1fr;
    padding: 0 16px;
    margin-bottom: 18px;
  }

  .password-field {
    grid-template-columns: 34px 1fr 34px;
  }

  .field > img,
  .password-field button img {
    width: 26px;
    height: 26px;
  }

  .field input {
    height: 56px;
    font-size: 20px;
  }

  .login-options {
    font-size: 15px;
    margin-bottom: 26px;
  }

  .remember span {
    width: 24px;
    height: 24px;
    border-width: 2px;
  }

  .login-submit {
    height: 68px;
    font-size: 24px;
  }

  .login-submit img {
    width: 28px;
    height: 28px;
  }

  .or-line {
    font-size: 18px;
    margin: 30px 0 24px;
    gap: 18px;
  }

  .google-login {
    height: 62px;
    font-size: 19px;
  }

  .google-login strong {
    font-size: 28px;
  }

  .privacy-note {
    grid-template-columns: 52px 1fr;
    padding: 20px;
    border-radius: 18px;
  }

  .privacy-note img {
    width: 38px;
    height: 38px;
  }

  .privacy-note h3 {
    font-size: 21px;
  }

  .privacy-note p,
  .login-terms {
    font-size: 15px;
  }
}

/* BADAWY TV AUTH DEBUG STATUS */
.login-status {
  margin: 22px 0;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 800;
  line-height: 1.45;
  white-space: pre-wrap;
  border: 1px solid rgba(0,0,0,.12);
}

.login-status.error {
  color: #991b1b;
  background: #fee2e2;
}

.login-status.success {
  color: #065f46;
  background: #dcfce7;
}

/* BADAWY TV LOGIN STATUS */
.login-status {
  margin: 22px 0;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 800;
  line-height: 1.45;
  white-space: pre-wrap;
  border: 1px solid rgba(0,0,0,.12);
}

.login-status.error {
  color: #991b1b;
  background: #fee2e2;
}

.login-status.success {
  color: #065f46;
  background: #dcfce7;
}

/* BADAWY TV LOGIN STATUS SAFE */
.login-status {
  margin: 22px 0;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 800;
  line-height: 1.45;
  white-space: pre-wrap;
  border: 1px solid rgba(0,0,0,.12);
}

.login-status.error {
  color: #991b1b;
  background: #fee2e2;
}

.login-status.success {
  color: #065f46;
  background: #dcfce7;
}
