/* ====== Academy Auth (scoped) ====== */
:root {
  --c-bg: #f3f6fb;
  --c-panel: #0f2f52;
  --c-panel-2: #143d69;
  --c-text: #0c1a2b;
  --c-muted: #6b7a8c;
  --c-white: #fff;
  --c-primary: #163b63;
  --c-primary-2: #0f2f52;
  --radius-xl: 18px;
  --shadow-xl: 0 18px 45px rgba(15, 47, 82, 0.18);
  --shadow-md: 0 10px 25px rgba(15, 47, 82, 0.12);
}

.academy-auth {
  font-family: "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, "Noto Kufi Arabic", Arial, sans-serif;
  background: #ffffff; padding: 32px;
}

.academy-auth .auth-card {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--c-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  overflow: hidden;
}

/* Left panel */
.academy-auth .auth-aside {
  background: radial-gradient(120% 140% at 10% 10%, #1c5087 0%, var(--c-panel) 55%, #0b2643 100%);
  color: var(--c-white);
  padding: 48px 40px 56px;
}
.academy-auth .brand .site-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.academy-auth .brand .site-subtitle {
  opacity: 0.95;
  margin: 0 0 28px;
  font-size: 18px;
}
.academy-auth .benefits {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.academy-auth .benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
}
.academy-auth .benefits .check {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-block; flex: 0 0 22px;
  background: linear-gradient(180deg, #8ad0a5, #4bb07a);
  position: relative; box-shadow: 0 6px 14px rgba(75,176,122,.35);
}
.academy-auth .benefits .check::after{
  content:""; position:absolute; inset:0;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="white" viewBox="0 0 24 24"><path d="M20.285 6.709a1 1 0 0 1 .006 1.414l-9.02 9.086a1 1 0 0 1-1.424-.006L3.71 10.987a1 1 0 1 1 1.414-1.414l5.04 5.04 8.313-8.32a1 1 0 0 1 1.808.416Z"/></svg>') center / 70% 70% no-repeat;
  background: #fff;
}

/* Right panel */
.academy-auth .auth-main { padding: 48px 48px 56px; }
.academy-auth .form-title { margin: 6px 0 6px; font-size: 36px; color: var(--c-text); font-weight: 800; }
.academy-auth .form-subtitle { color: var(--c-muted); margin: 0 0 24px; font-size: 16px; }

.academy-auth .login-form { display: grid; gap: 18px; }

/* Fields */
.academy-auth .field { position: relative; }
.academy-auth .field input {
  width: 100%;
  height: 56px;
  padding: 0 52px 0 16px;
  border: 1px solid #d7e0ea;
  border-radius: 14px;
  background: #f9fbfe;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  font-size: 16px;
  outline: none;
  transition: border .2s, box-shadow .2s, background .2s;
}
.academy-auth .field input:focus {
  border-color: #b7c8dc;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(22,59,99,.06);
}

/* Floating label */
.academy-auth .field .floating {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  right: 52px;
  pointer-events: none;
  color: #8ca0b5;
  transition: all .18s ease;
  background: transparent;
}
.academy-auth .field input:focus ~ .floating,
.academy-auth .field input:not(:placeholder-shown) ~ .floating {
  top: -9px;
  right: 14px;
  padding: 0 6px;
  font-size: 12px;
  color: #5e7795;
  background: var(--c-white);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}

/* Icons */
.academy-auth .field .icon {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  inset-inline-start: 14px;
  width: 24px; height: 24px; opacity: .75;
  pointer-events: none;
}
.academy-auth .field .icon.email {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%235d7593" viewBox="0 0 24 24"><path d="M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm0 2v.01L12 13 4 6.01V6h16ZM4 18V8.236l7.386 6.403a1 1 0 0 0 1.228 0L20 8.236V18H4Z"/></svg>') center/contain no-repeat;
}
.academy-auth .field .icon.lock {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%235d7593" viewBox="0 0 24 24"><path d="M17 9V7a5 5 0 1 0-10 0v2H5a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-2Zm-8 0V7a3 3 0 1 1 6 0v2H9Zm3 4a2 2 0 0 1 1 3.732V18a1 1 0 1 1-2 0v-1.268A2 2 0 0 1 12 13Z"/></svg>') center/contain no-repeat;
}

/* Top row */
.academy-auth .row.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.academy-auth .remember { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--c-text); }
.academy-auth .remember input { accent-color: var(--c-panel); }

/* Buttons / links */
.academy-auth .btn.primary {
  margin-top: 6px;
  height: 56px; border: 0; border-radius: 14px;
  background: var(--c-primary);
  color: var(--c-white); font-size: 18px; font-weight: 800;
  box-shadow: var(--shadow-md);
  cursor: pointer; transition: transform .06s ease, background .2s ease;
}
.academy-auth .btn.primary:hover { background: var(--c-primary-2); }
.academy-auth .btn.primary:active { transform: translateY(1px); }

.academy-auth .form-footer { text-align: center; margin-top: 18px; display: grid; gap: 6px; }
.academy-auth .link { color: var(--c-panel); text-decoration: none; }
.academy-auth .link:hover { text-decoration: underline; }
.academy-auth .bold { font-weight: 800; }

/* Responsive */
@media (max-width: 980px) {
  .academy-auth .auth-card { grid-template-columns: 1fr; }
  .academy-auth .auth-aside { order: 2; padding: 36px 28px 44px; }
  .academy-auth .auth-main  { order: 1; padding: 32px 24px 40px; }
  .academy-auth .brand .site-title { font-size: 34px; }
}

/* RTL tweaks */
.academy-auth.rtl .field input { padding-inline-start: 52px; padding-inline-end: 16px; }


/* === Tweaks requested by user === */

/* Force the big side title & subtitle to white and fully visible */
.academy-auth .auth-aside .site-title,
.academy-auth .auth-aside .site-subtitle {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/* Always show labels above inputs (clear, readable) */
.academy-auth .field {
  margin-top: 8px;
}
.academy-auth .field .floating {
  position: absolute;
  top: -9px;                 /* pin above input */
  right: 14px;
  padding: 0 6px;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  color: #274566;            /* clearer label color */
  background: var(--c-white);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  pointer-events: none;
}
/* keep icon & input spacing */
.academy-auth .field input {
  margin-top: 8px;
}

/* === Global font application === */
/* Apply the same Arabic font to all headings and texts inside the auth UI */
.academy-auth, .academy-auth * {
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Kufi Arabic", Arial, sans-serif !important;
}


/* Alerts */
.academy-auth .alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.5;
}
.academy-auth .alert.error {
  background: #fde8ea;
  color: #8b1f2b;
  border: 1px solid #f5c6cb;
  box-shadow: 0 4px 10px rgba(139,31,43,.08);
}


/* === Warning/Error alert compact style === */
.academy-auth .alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.6;
}
.academy-auth .alert.compact { margin-bottom: 10px; } /* small space before fields */
.academy-auth .alert .ico{
  width: 22px; height: 22px; flex: 0 0 22px;
  border-radius: 50%;
  background: #c53030;
  box-shadow: 0 0 0 4px rgba(197,48,48,.12);
  position: relative;
}
.academy-auth .alert .ico::after{
  content: "";
  position: absolute; inset: 0;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="white" viewBox="0 0 24 24"><path d="M12 2a10 10 0 1 0 .001 20.001A10 10 0 0 0 12 2Zm1 14h-2v-2h2v2Zm0-4h-2V7h2v5Z"/></svg>') center/70% 70% no-repeat;
  background: #fff;
}
.academy-auth .alert.error {
  background: #fde8ea;
  color: #7a1520;
  border: 1px solid #f3c2c7;
  box-shadow: 0 4px 10px rgba(139,31,43,.08);
}
.academy-auth .alert .msg { margin-top: 1px; }
