@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/dashboard/assets/fonts/ibm-plex-sans-arabic-400.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/dashboard/assets/fonts/ibm-plex-sans-arabic-600.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/dashboard/assets/fonts/ibm-plex-sans-arabic-700.ttf") format("truetype");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/dashboard/assets/fonts/poppins-600.ttf") format("truetype");
}

:root {
  --bg: #f8faf8;
  --surface: #ffffff;
  --ink: #0f211a;
  --muted: #5f716a;
  --line: #dbe5df;
  --green: #0f3d2e;
  --green-deep: #0a2a20;
  --green-soft: #eaf3ef;
  --red: #a33d36;
  --red-soft: #fae9e7;
  --shadow: 0 28px 70px rgba(15, 61, 46, 0.14);
  --font-brand: "Poppins", Arial, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(15, 61, 46, 0.08), transparent 28%),
    linear-gradient(135deg, #f8faf8 0%, #edf4f0 100%);
  color: var(--ink);
  font-family: var(--font-brand), var(--font-ar);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p {
  margin: 0;
}

.login-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 28px;
  padding: 34px 0;
}

.brand-panel,
.login-card {
  border: 1px solid rgba(219, 229, 223, 0.95);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-panel {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  border-radius: 8px;
  padding: 42px;
  overflow: hidden;
  position: relative;
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: auto -120px -170px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 54px solid rgba(15, 61, 46, 0.08);
}

.brand-wordmark {
  width: min(300px, 78vw);
  height: auto;
  position: relative;
  z-index: 1;
}

.brand-copy {
  display: grid;
  gap: 18px;
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

h1 {
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.12;
  letter-spacing: 0;
}

.brand-copy p:last-child,
.muted {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.security-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}

.security-list span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 700;
  text-align: center;
}

.login-card {
  border-radius: 8px;
  padding: 32px;
  display: grid;
  gap: 24px;
}

.login-card h2 {
  margin-top: 6px;
  font-size: 34px;
  line-height: 1.25;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  color: var(--ink);
  padding: 0 14px;
  direction: ltr;
  text-align: left;
  outline: none;
}

input:focus {
  border-color: rgba(15, 61, 46, 0.65);
  box-shadow: 0 0 0 4px rgba(15, 61, 46, 0.1);
}

.primary-button {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(15, 61, 46, 0.22);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  display: none;
  min-height: 44px;
  align-items: center;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}

.form-status.show {
  display: flex;
}

.form-status.error {
  background: var(--red-soft);
  color: var(--red);
}

.form-status.success {
  background: var(--green-soft);
  color: var(--green);
}

.back-link {
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

@media (max-width: 880px) {
  .login-shell {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .brand-panel {
    min-height: auto;
    padding: 28px;
  }
}

@media (max-width: 560px) {
  .login-shell {
    width: min(100% - 24px, 1120px);
    padding: 18px 0;
  }

  .security-list {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 22px;
  }

  h1 {
    font-size: 34px;
  }
}
