@font-face {
  font-family: "PLevelAuth";
  src: url("../fonts/almarai-auth-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PLevelAuth";
  src: url("../fonts/almarai-auth-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

body.pl-auth-page {
  --auth-ink: #0a1b28;
  --auth-muted: #77869c;
  --auth-accent: #00b9c5;
  --auth-border: #d4dce7;
  margin: 0;
  color: var(--auth-ink);
  background: #fff;
  font-family: "PLevelAuth", "Outfit", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  direction: rtl;
}

.pl-auth-page [hidden] { display: none !important; }
.pl-auth-page button, .pl-auth-page input { font-family: inherit; }
.pl-auth-page svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl-auth-page a, .pl-auth-page button, .pl-auth-page input { -webkit-tap-highlight-color: transparent; }
.pl-auth-page a:focus-visible, .pl-auth-page button:focus-visible { outline: 3px solid #85e4e8; outline-offset: 4px; }

.pl-auth-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(440px, .426fr) minmax(0, .574fr); direction: ltr; }
.pl-auth-form-side { min-width: 0; min-height: 100svh; padding: 0 clamp(32px, 3.9vw, 60px); display: flex; flex-direction: column; direction: rtl; }
.pl-auth-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 40px 30px; direction: ltr; }
.pl-auth-brand { display: block; flex: 0 1 196px; line-height: 0; }
.pl-auth-brand img { display: block; width: 100%; height: auto; max-height: 50px; object-fit: contain; object-position: left center; }
.pl-auth-home { display: inline-flex; align-items: center; gap: 10px; color: #65758e; font-size: 14px; white-space: nowrap; direction: rtl; transition: color .2s; }
.pl-auth-home svg { width: 22px; height: 22px; }
.pl-auth-home:hover { color: #078b95; }
.pl-auth-content { width: 100%; max-width: 530px; margin: auto; padding-block: 44px 64px; animation: auth-content-in .65s ease both; }
.pl-auth-heading { margin-bottom: 44px; }
.pl-auth-heading h1 { margin: 0; color: #081923; font-size: clamp(36px, 3.38vw, 52px); font-weight: 700; line-height: 1.35; letter-spacing: -.8px; }
.pl-auth-heading p { margin: 14px 0 0; color: var(--auth-muted); font-size: 20px; line-height: 1.65; }
.pl-auth-login-form { display: grid; gap: 26px; }
.pl-auth-field { display: flex; flex-direction: column; min-width: 0; gap: 10px; }
.pl-auth-field > label { display: block; color: #34455d; font-size: 18px; line-height: 1.45; }
.pl-auth-input { position: relative; }
.pl-auth-input input { display: block; width: 100%; min-width: 0; height: 70px; padding: 16px 22px; color: var(--auth-ink); background: #fafbfd; border: 1px solid var(--auth-border); border-radius: 12px; outline: none; font-size: 18px; line-height: 1.5; transition: border-color .2s, box-shadow .2s, background .2s; }
.pl-auth-input input::placeholder { color: #8796ad; opacity: 1; }
.pl-auth-input input[dir="ltr"] { font-family: "Outfit", "PLevelAuth", sans-serif; text-align: left; }
.pl-auth-input input[type="password"], .pl-auth-input input[data-login-password] { font-family: "Outfit", "PLevelAuth", sans-serif; direction: ltr; text-align: left; padding-right: 62px; }
.pl-auth-input input:focus { border-color: var(--auth-accent); box-shadow: 0 0 0 4px #00b9c518; background: #fff; }
.pl-auth-input input[aria-invalid="true"] { border-color: #d87575; }
.pl-auth-field small { color: var(--auth-muted); font-size: 12px; line-height: 1.5; }
.pl-auth-field small.is-error { color: #b33c3c; }
.login-password-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: #8492a8; background: transparent; border: 0; border-radius: 8px; }
.login-password-toggle svg { width: 24px; height: 24px; }
.login-password-toggle:hover { color: #078b95; background: #eaf8fa; }
.login-password-toggle.is-visible::after { content: ""; position: absolute; width: 22px; height: 2px; background: currentColor; transform: rotate(-45deg); border: 1px solid #fafbfd; box-sizing: content-box; }
.pl-auth-remember { display: inline-flex; align-items: center; justify-content: flex-start; gap: 12px; align-self: start; color: #445570; font-size: 17px; cursor: pointer; }
.pl-auth-remember input { width: 20px; height: 20px; margin: 0; accent-color: var(--auth-accent); cursor: pointer; }
.pl-auth-submit { width: 100%; min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px 22px; border: 0; border-radius: 12px; background: var(--auth-accent); color: #fff; font-size: 22px; font-weight: 700; line-height: 1.45; transition: background .2s, box-shadow .2s, transform .2s; }
.pl-auth-submit svg { width: 25px; height: 25px; transition: transform .2s; }
.pl-auth-submit:hover { background: #079aa4; box-shadow: 0 8px 22px #0089941a; }
.pl-auth-submit:hover svg { transform: translateX(-4px); }
.pl-auth-submit:active { transform: translateY(1px); }
.pl-auth-submit:disabled { opacity: .7; cursor: wait; box-shadow: none; }
.pl-auth-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; color: #52647e; font-size: 16px; text-align: center; padding-block: 12px 6px; }
.pl-auth-switch a { color: #049fa9; font-weight: 700; text-underline-offset: 5px; }
.pl-auth-switch a:hover { text-decoration: underline; }
.pl-auth-footnote { margin: 0; padding-top: 28px; border-top: 1px solid #e2e7ee; color: var(--auth-muted); font-size: 14px; text-align: center; }

.pl-auth-visual { position: sticky; top: 0; height: 100svh; min-height: 680px; padding: 44px 54px 52px; display: flex; flex-direction: column; overflow: hidden; background: #081923; color: #fff; direction: rtl; isolation: isolate; }
.pl-auth-visual-brand, .pl-auth-signoff { margin: 0; color: #c3d2e1; font-family: "Outfit", sans-serif; font-size: 15px; letter-spacing: 4px; line-height: 1.5; text-align: right; }
.pl-auth-art { position: absolute; top: 12px; left: -156px; width: calc(100% + 270px); z-index: -1; animation: auth-art-float 9s ease-in-out infinite; }
.pl-auth-art img { display: block; width: 100%; height: auto; max-width: none; mask-image: radial-gradient(ellipse at center, #000 50%, transparent 75%); }
.pl-auth-visual-copy { margin-top: auto; padding-bottom: 72px; }
.pl-auth-visual-copy h2 { margin: 0; color: #fff; font-size: clamp(40px, 4.1vw, 64px); font-weight: 700; letter-spacing: -1px; line-height: 1.3; }
.pl-auth-visual-copy h2 span { display: block; color: #00c2cd; }
.pl-auth-visual-copy p { margin: 18px 0 0; color: #cad5e2; font-size: clamp(18px, 1.65vw, 25px); line-height: 1.8; }
.pl-auth-signoff { font-size: 14px; }

.pl-auth-page[data-auth-mode="register"] .pl-auth-content { padding-block: 24px 42px; }
.pl-auth-page[data-auth-mode="register"] .pl-auth-heading { margin-bottom: 32px; }
.pl-auth-page[data-auth-mode="register"] .pl-auth-heading h1 { font-size: clamp(34px, 3.38vw, 52px); }
.pl-auth-page[data-auth-mode="register"] .pl-auth-heading p { font-size: 20px; margin-top: 12px; }
.registration-form { display: grid; gap: 22px; }
.registration-account-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border: 0; padding: 0; margin: 0; min-width: 0; }
.registration-account-types legend { padding: 0; margin-bottom: 12px; color: #34455d; font-size: 16px; }
.registration-account-types > label { position: relative; min-width: 0; cursor: pointer; }
.registration-account-types input { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; margin: 0; accent-color: var(--auth-accent); cursor: pointer; }
.registration-account-types label > span { min-height: 82px; display: flex; align-items: center; justify-content: flex-start; gap: 16px; padding: 18px 18px 18px 50px; border: 1px solid var(--auth-border); border-radius: 12px; color: #5c6e86; background: #fff; transition: border-color .2s, background .2s; }
.registration-account-types svg { width: 32px; height: 32px; flex: 0 0 auto; color: #8191a7; }
.registration-account-types strong { font-size: 18px; font-weight: 400; }
.registration-account-types input:checked + span { color: #153e49; border-color: var(--auth-accent); background: #f0fbfc; }
.registration-account-types input:checked + span svg { color: var(--auth-accent); }
.registration-account-types input:focus-visible + span { outline: 3px solid #85e4e8; outline-offset: 3px; }
.registration-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.registration-fields .pl-auth-field { gap: 8px; }
.registration-fields .pl-auth-field > label { font-size: 16px; line-height: 1.45; }
.registration-fields .pl-auth-input input { height: 56px; padding: 12px 16px; font-size: 16px; }
.registration-fields .pl-auth-input input[data-login-password] { padding-right: 48px; }
.registration-fields .login-password-toggle { right: 10px; }
.registration-fields .login-password-toggle svg { width: 22px; height: 22px; }
.registration-fields .pl-auth-field small { margin-top: -2px; font-size: 13px; }
.registration-form:not(.is-pos-registration) .registration-fields > .pl-auth-field:first-child { grid-column: 1 / -1; }
.registration-hint { display: flex; align-items: flex-start; gap: 10px; color: var(--auth-muted); font-size: 14px; line-height: 1.75; }
.registration-hint svg { width: 21px; height: 21px; flex: 0 0 auto; margin-top: 1px; }
.registration-submit { min-height: 64px; font-size: 20px; }
.registration-form .pl-auth-switch { border-top: 1px solid #e2e7ee; padding-top: 22px; font-size: 14px; }
.registration-feedback, .pl-auth-panel .note-box { margin: 0; padding: 14px 16px; border: 1px solid #d4dce7; border-radius: 12px; font-size: 14px; line-height: 1.8; color: #34455d; background: #f4f8fb; }
.registration-feedback:empty { display: none; }
.registration-feedback.is-success, .pl-auth-panel .note-success { border-color: #b3dfcc; color: #216147; background: #effaf4; }
.registration-feedback.is-error, .pl-auth-panel .note-warm { border-color: #ecc2c2; color: #a73939; background: #fff3f3; }
.pl-auth-panel > .note-box { margin-bottom: 22px; }
.pl-auth-panel .close-note { display: none; }
.registration-form.is-submitting .registration-submit svg { visibility: hidden; }
.registration-form.is-submitting .registration-submit::after { content: ""; width: 19px; height: 19px; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: auth-spin .7s linear infinite; }
.dlcms-loading-overlay { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: #08192377; backdrop-filter: blur(4px); }
.dlcms-loading-overlay.is-active { display: grid; }
.dlcms-loading-ring { display: block; width: 36px; height: 36px; border: 3px solid #ffffff55; border-top-color: #3bedf3; border-radius: 50%; animation: auth-spin .8s linear infinite; }

@keyframes auth-content-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes auth-art-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes auth-spin { to { transform: rotate(360deg); } }

@media (min-width: 981px) and (max-height: 900px) {
  .pl-auth-header { padding-block: 26px 20px; }
  .pl-auth-content { padding-block: 24px 30px; }
  .pl-auth-heading { margin-bottom: 28px; }
  .pl-auth-heading h1 { font-size: 38px; }
  .pl-auth-heading p { font-size: 16px; margin-top: 12px; }
  .pl-auth-login-form { gap: 20px; }
  .pl-auth-field { gap: 8px; }
  .pl-auth-field > label { font-size: 16px; }
  .pl-auth-input input { height: 58px; font-size: 16px; }
  .pl-auth-submit { min-height: 58px; font-size: 20px; }
  .pl-auth-remember, .pl-auth-switch { font-size: 15px; }
  .pl-auth-switch { padding-block: 8px 4px; }
  .pl-auth-footnote { padding-top: 20px; font-size: 12px; }
  .pl-auth-visual { padding: 32px 40px 34px; }
  .pl-auth-art { width: min(100%, calc((100svh - 330px) * 1.6)); left: 0; right: 0; margin-inline: auto; top: 20px; }
  .pl-auth-visual-copy { padding-bottom: 48px; }
  .pl-auth-visual-copy h2 { font-size: clamp(38px, 3.8vw, 52px); }
  .pl-auth-visual-copy p { font-size: 18px; margin-top: 16px; }
  .pl-auth-page[data-auth-mode="register"] .pl-auth-heading h1 { font-size: 36px; }
  .pl-auth-page[data-auth-mode="register"] .pl-auth-heading p { font-size: 16px; }
  .pl-auth-page[data-auth-mode="register"] .pl-auth-content { padding-block: 20px 30px; }
  .registration-form { gap: 18px; }
  .registration-fields { gap: 18px 16px; }
  .registration-fields .pl-auth-field > label { font-size: 13px; }
  .registration-fields .pl-auth-input input { height: 48px; font-size: 14px; }
  .registration-account-types label > span { min-height: 66px; }
  .registration-account-types strong { font-size: 16px; }
  .registration-hint { font-size: 12px; }
}

@media (max-width: 1200px) and (min-width: 981px) {
  .pl-auth-header { gap: 12px; }
  .pl-auth-brand { flex-basis: 150px; }
  .pl-auth-home { font-size: 12px; gap: 6px; }
  .pl-auth-visual { padding-inline: 32px; }
  .pl-auth-visual-copy { padding-bottom: 62px; }
  .pl-auth-heading p { font-size: 17px; }
  .pl-auth-input input { height: 60px; }
  .pl-auth-submit { min-height: 64px; font-size: 19px; }
  .registration-fields .pl-auth-input input { height: 52px; font-size: 12px; }
  .registration-fields .pl-auth-field > label { font-size: 12px; }
  .registration-account-types label > span { gap: 8px; padding-right: 12px; }
  .registration-account-types input { left: 12px; }
}

@media (max-width: 980px) {
  .pl-auth-shell { grid-template-columns: minmax(0, 1fr); }
  .pl-auth-form-side { min-height: 100svh; padding-inline: 32px; }
  .pl-auth-header { width: 100%; max-width: 660px; margin-inline: auto; padding-block: 28px; }
  .pl-auth-brand { flex-basis: 174px; }
  .pl-auth-content { padding-block: 32px 52px; }
  .pl-auth-heading h1 { font-size: 42px; }
  .pl-auth-heading p { font-size: 17px; }
  .pl-auth-visual { position: relative; height: 400px; min-height: 0; padding: 26px 32px; }
  .pl-auth-art { width: 670px; left: -110px; top: -75px; }
  .pl-auth-visual-brand { font-size: 12px; letter-spacing: 2.5px; }
  .pl-auth-visual-copy { padding-bottom: 22px; }
  .pl-auth-visual-copy h2 { font-size: 36px; }
  .pl-auth-visual-copy p { font-size: 15px; margin-top: 10px; }
  .pl-auth-signoff { font-size: 10px; letter-spacing: 2.5px; }
}

@media (max-width: 540px) {
  .pl-auth-form-side { padding-inline: 24px; }
  .pl-auth-header { gap: 14px; padding-block: 24px; }
  .pl-auth-brand { flex-basis: 134px; }
  .pl-auth-home { font-size: 11px; gap: 6px; }
  .pl-auth-home svg { width: 18px; height: 18px; }
  .pl-auth-content { margin-block: auto; padding-block: 40px 48px; }
  .pl-auth-heading { margin-bottom: 30px; }
  .pl-auth-heading h1 { font-size: 34px; letter-spacing: -.4px; }
  .pl-auth-heading p { font-size: 14px; margin-top: 12px; }
  .pl-auth-login-form { gap: 22px; }
  .pl-auth-field > label { font-size: 14px; }
  .pl-auth-input input { height: 58px; font-size: 16px; padding-inline: 16px; }
  .pl-auth-remember { font-size: 14px; }
  .pl-auth-submit { min-height: 58px; font-size: 18px; }
  .pl-auth-switch { font-size: 14px; gap: 8px; padding-block: 6px; }
  .pl-auth-footnote { font-size: 12px; padding-top: 22px; }
  .pl-auth-page[data-auth-mode="register"] .pl-auth-content { padding-block: 28px 40px; }
  .pl-auth-page[data-auth-mode="register"] .pl-auth-heading h1 { font-size: 32px; }
  .pl-auth-page[data-auth-mode="register"] .pl-auth-heading p { font-size: 14px; }
  .registration-account-types { gap: 12px; }
  .registration-account-types legend { font-size: 14px; }
  .registration-account-types label > span { gap: 8px; padding: 16px 12px 16px 38px; min-height: 68px; }
  .registration-account-types input { left: 12px; width: 17px; height: 17px; }
  .registration-account-types svg { width: 23px; height: 23px; }
  .registration-account-types strong { font-size: 13px; }
  .registration-fields { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .registration-fields .pl-auth-input input { height: 54px; font-size: 16px; }
  .registration-hint { font-size: 12px; }
  .registration-form .pl-auth-switch { font-size: 12px; }
  .pl-auth-visual { height: 340px; padding-inline: 24px; }
  .pl-auth-art { width: 500px; left: -140px; top: -50px; }
  .pl-auth-visual-copy h2 { font-size: 28px; }
  .pl-auth-visual-copy p { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-auth-page *, .pl-auth-page *::before, .pl-auth-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
