:root {
  color-scheme: dark;
  --surface: #131318;
  --panel: #181822;
  --line: #2c2c35;
  --text: #f5f5f7;
  --muted: #aaaab5;
  --accent: #e52636;
  font-family: 'Almarai', sans-serif;
  background: var(--surface);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
::selection { color: white; background: #a92332; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #ff7180; outline-offset: 5px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-header { height: 80px; padding-inline: 32px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.header-brand { display: inline-flex; }
.header-brand img { width: 132px; height: 44px; object-fit: contain; }
.header-tools { display: flex; gap: 8px; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; background: #202024; border: 1px solid #303036; color: #b8b8bf; border-radius: 12px; cursor: pointer; transition: background-color .2s, color .2s; }
.icon-button:hover { background: #2b2b31; color: white; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - 80px); }
.login-side { position: relative; padding: 112px 40px 64px; display: grid; place-items: center; }
.back-link { position: absolute; inset-block-start: 28px; inset-inline-start: 40px; display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; border: 1px solid #303036; border-radius: 50px; background: rgba(255, 255, 255, .04); color: #f5f5f7; font-size: 14px; font-weight: 700; line-height: 1.5; transform: translateY(0); box-shadow: 0 2px 10px #0000000a; transition: transform .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s cubic-bezier(.4, 0, .2, 1), background-color .25s cubic-bezier(.4, 0, .2, 1), border-color .25s cubic-bezier(.4, 0, .2, 1); }
.back-link-icon { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border: 1px solid rgba(229, 38, 54, .25); border-radius: 50%; background: rgba(229, 38, 54, .12); color: #ff7180; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.back-link svg { width: 16px; height: 16px; transition: transform .25s ease; }
/* Keep the hover area stable as the button rises. */
.back-link::before { content: ''; position: absolute; inset: -4px 0; border-radius: inherit; }
.back-link:is(:hover, :focus-visible) { background: rgba(229, 38, 54, .08); border-color: rgba(229, 38, 54, .35); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(229, 38, 54, .15); }
.back-link:is(:hover, :focus-visible) .back-link-icon { background: var(--accent); border-color: var(--accent); color: white; }
.back-link:is(:hover, :focus-visible) svg { transform: translateX(3px); }
.back-link:active { transform: translateY(0) scale(.97); box-shadow: 0 2px 8px #0003; }
.back-link:active .back-link-icon { background: #c91e2d; border-color: #c91e2d; }
.login-card { display: flex; flex-direction: column; gap: 18px; width: min(100%, 440px); margin: 0; padding: 36px 32px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 24px; background: var(--panel); box-shadow: 0 20px 50px #0006; text-align: center; animation: login-card-enter .6s cubic-bezier(.16, 1, .3, 1); }
.card-header { margin-bottom: 6px; }
h1 { margin: 0; font-size: 24px; line-height: 1.6; font-weight: 800; }
.login-intro { margin: 6px 0 0; font-size: 14px; line-height: 1.9; color: var(--muted); }
.form-group { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: start; }
.form-group label { color: #d0d0d6; font-size: 13px; font-weight: 700; line-height: 1.5; }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.text-button { padding: 0; border: 0; background: transparent; color: #ff7180; font-size: 13px; font-weight: 700; line-height: 1.6; cursor: pointer; transition: color .2s; }
.text-button:hover { color: #ff9ba7; text-decoration: underline; text-underline-offset: 4px; }
.input-container { position: relative; display: flex; align-items: center; width: 100%; }
.input-container input { width: 100%; min-width: 0; min-height: 50px; padding: 14px 42px 14px 14px; border: 1.5px solid rgba(255, 255, 255, .09); border-radius: 12px; background: #0f0f14; color: white; caret-color: #ff7180; font: 400 14px 'Almarai', sans-serif; text-align: start; outline: none; transition: border-color .25s, box-shadow .25s; }
.input-container input::placeholder { color: #9696a4; opacity: 1; }
.input-icon { position: absolute; inset-inline-start: 15px; width: 17px; height: 17px; color: #9696a4; pointer-events: none; transition: color .25s; }
.input-container input:focus { border-color: #ff7180; box-shadow: 0 0 0 3px rgba(229, 38, 54, .15); }
.input-container input:focus + .input-icon { color: #ff7180; }
.input-container input:autofill { box-shadow: 0 0 0 100px #15151e inset; -webkit-text-fill-color: white; }
.submit-login { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; margin-top: 4px; padding: 15px; border: 0; border-radius: 12px; background: var(--accent); color: white; font-size: 15px; font-weight: 800; cursor: pointer; transition: background-color .2s, transform .15s; }
.submit-login svg { width: 17px; height: 17px; }
.submit-login:hover { background: #ca1b2b; }
.submit-login:active { transform: translateY(1px); }
.register-hint { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.register-hint .text-button { margin-inline-start: 4px; font-size: 14px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--muted); font-size: 13px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.google-login { display: flex; direction: ltr; justify-content: center; align-items: center; gap: 8px; align-self: center; min-height: 40px; max-width: 100%; padding: 8px 12px; border: 1px solid #dadce0; border-radius: 4px; background: white; color: #3c4043; font: 500 14px Arial, sans-serif; cursor: pointer; transition: background-color .2s, border-color .2s; }
.google-login:hover { background: #f3f6fc; border-color: #c3d1e8; }
.google-login:disabled { opacity: .65; cursor: wait; transform: none; }
.google-icon { width: 18px; height: 18px; flex-shrink: 0; stroke: none; }
.login-status { margin: 0; color: #ff9ba7; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.login-status:empty { display: none; }
@keyframes login-card-enter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.brand-side { position: relative; display: grid; place-items: center; overflow: hidden; padding: 64px 48px; background: #101015; border-inline-start: 1px solid #202027; }
.brand-content { width: 100%; max-width: 520px; text-align: center; }
.floating-logo { display: block; width: 100%; max-width: 230px; height: auto; object-fit: contain; margin: 0 auto 48px; animation: logo-float 4s ease-in-out infinite; }
.brand-content h2 { margin: 0 0 16px; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.7; font-weight: 800; }
.brand-content p { margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }
@keyframes logo-float { 0%, 100% { transform: translateY(7px); } 50% { transform: translateY(-7px); } }
@media (min-width: 1600px) { .login-side { padding-inline: 80px; } }
@media (max-width: 820px) {
  .login-header { height: 72px; padding-inline: 20px; }
  .login-layout { min-height: calc(100svh - 72px); grid-template-columns: 1fr; }
  .brand-side { grid-row: 1; padding: 40px 24px 20px; border: 0; background: var(--surface); }
  .brand-content { max-width: 300px; }
  .floating-logo { max-width: 180px; margin-bottom: 12px; }
  .brand-content h2 { font-size: 19px; margin-bottom: 0; }
  .brand-content p { display: none; }
  .login-side { padding: 70px 20px 36px; }
  .back-link { inset-block-start: 8px; inset-inline-start: 24px; }
  .login-card { padding: 28px 20px; border-radius: 20px; }
  .icon-button { width: 44px; height: 44px; }
  h1 { font-size: 24px; }
}
@media (max-width: 360px) { .login-side { padding-inline: 14px; } .login-card { padding-inline: 18px; } .google-login { font-size: 12px; gap: 8px; } }
/* Keep the explicitly requested logo and back-button motion active, as on information.html. */
@media (prefers-reduced-motion: reduce) { .floating-logo { animation-duration: 5s; } .login-card { animation: none; } .google-login, .icon-button, .input-container input, .input-icon, .text-button, .submit-login { transition: none; } }


/* Store footer: shared markup and styles from the homepage. */
.omnex-footer { --primary-red: #ffb400; --bg-footer: #0f0f14; }
.omnex-footer h2, .omnex-footer p { margin: 0; }
.omnex-footer {
  background:var(--bg-footer,#10002b);
  color:#e8e3f0;
  border-top:1px solid rgba(255,22,22,.35);
  padding:52px 24px 28px;
}
.omnex-footer-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); max-width:1000px; margin:0 auto; }
.omnex-footer-links { padding-left:34px; }
.omnex-footer-logo { display:inline-flex; margin-bottom:28px; }
.omnex-footer-logo img { width:145px; height:52px; object-fit:contain; }
.omnex-footer-heading { display:flex; align-items:center; gap:7px; font-size:15px; font-weight:800; color:#fff; margin-bottom:22px; }
.omnex-footer-heading::before { content:"["; color:var(--primary-red); }
.omnex-footer-heading::after { content:"]"; color:var(--primary-red); }
.omnex-footer-heading span { position:relative; }
.omnex-footer-heading span::after { content:""; position:absolute; right:0; bottom:-10px; width:30px; height:2px; background:var(--primary-red); }
.omnex-footer-nav { display:flex; flex-direction:column; }
.omnex-footer-nav a { display:flex; align-items:center; gap:10px; padding:13px 2px; border-top:1px solid rgba(255,255,255,.07); font-size:12px; color:#c8bfd7; transition:color .25s,background-color .25s; }
.omnex-footer-nav a:last-child { border-bottom:1px solid rgba(255,255,255,.07); }
.omnex-footer svg { width:19px; height:19px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.omnex-footer-nav .omnex-footer-link-icon { display:grid; place-items:center; width:25px; height:25px; background:rgba(255,22,22,.08); color:#ff4545; border-radius:6px; }
.omnex-footer-link-icon svg { width:15px; height:15px; }
.omnex-footer-nav .omnex-footer-chevron { margin-right:auto; width:14px; height:14px; color:#827591; transition:transform .3s; }
.omnex-footer-nav a:hover { color:#fff; background:rgba(255,255,255,.025); }
.omnex-footer-nav a:hover .omnex-footer-chevron { transform:translateX(-3px); color:#ff4545; }
.omnex-footer-support { position:relative; border-right:1px solid rgba(255,22,22,.25); padding-right:34px; }
.omnex-footer-support::before { content:""; position:absolute; top:50%; right:-4px; width:7px; height:7px; background:var(--primary-red); transform:rotate(45deg); box-shadow:0 0 0 5px var(--bg-footer); }
.omnex-footer-headset { display:block; color:#ff4545; margin:0 0 20px; width:25px!important; height:25px!important; }
.omnex-footer-support p { font-size:12px; line-height:1.9; color:#b9afcb; max-width:310px; margin:0 0 12px; }
.omnex-footer-contact { display:flex; align-items:center; gap:9px; width:fit-content; margin-top:9px; font-size:12px; color:#e5dfee; transition:color .25s; }
.omnex-footer-contact>span { display:grid; place-items:center; width:27px; height:27px; border:1px solid rgba(255,22,22,.2); background:rgba(255,22,22,.06); border-radius:7px; color:#ff4545; }
.omnex-footer-contact svg { width:15px; height:15px; }
.omnex-footer-contact:hover { color:#ff6767; }
.omnex-footer-social { display:flex; gap:9px; flex-wrap:wrap; margin-top:20px; }
.omnex-footer-social-link { display:grid; place-items:center; width:37px; height:37px; border:1px solid rgba(255,22,22,.25); border-radius:10px; color:#ff4545; background:rgba(255,22,22,.035); transition:transform .3s,background-color .3s,color .3s,box-shadow .3s; }
.omnex-footer .omnex-footer-social-link svg { width:16px; height:16px; fill:currentColor; stroke:none; }
.omnex-footer-social-link:hover { transform:translateY(-3px); background:var(--primary-red); color:#fff; box-shadow:0 5px 16px rgba(255,22,22,.2); }
.omnex-footer a:focus-visible { outline:2px solid #ff4545; outline-offset:4px; }
.omnex-footer-copyright { max-width:520px; margin:32px auto 0; display:flex; align-items:center; justify-content:center; gap:12px; font-size:10px; color:#a59ab8; text-align:center; line-height:1.8; }
.omnex-footer-copyright::before,.omnex-footer-copyright::after { content:""; flex:1; height:1px; background:rgba(255,255,255,.08); min-width:20px; }
.omnex-footer-copyright b { color:#ded5eb; font-weight:600; }
@media(max-width:600px) { .omnex-footer { padding:34px 22px 24px; } .omnex-footer-layout { grid-template-columns:1fr; gap:32px; } .omnex-footer-links { padding-left:0; } .omnex-footer-logo { margin-bottom:22px; } .omnex-footer-support { border-right:0; border-top:1px solid rgba(255,22,22,.2); padding:28px 0 0; } .omnex-footer-support::before { top:-4px; right:24px; } .omnex-footer-copyright { font-size:9px; margin-top:30px; gap:8px; } }
@media(prefers-reduced-motion:reduce) { .omnex-footer a,.omnex-footer svg { transition:none!important; } .omnex-footer-social-link:hover,.omnex-footer-nav a:hover .omnex-footer-chevron { transform:none; } }

.omnex-footer {
  background: var(--bg-footer);
  border-top-color: rgba(255, 180, 0, 0.25);
}

.omnex-footer-heading::before,
.omnex-footer-heading::after {
  color: var(--primary-red);
}

.omnex-footer-heading span::after {
  background: var(--primary-red);
}

.omnex-footer-nav a {
  border-color: rgba(255, 255, 255, 0.06);
  color: #c8c8d0;
}

.omnex-footer-nav .omnex-footer-link-icon {
  background: rgba(255, 180, 0, 0.1);
  color: var(--primary-red);
}

.omnex-footer-social-link {
  border-color: rgba(255, 180, 0, 0.25);
  color: var(--primary-red);
}

.omnex-footer-social-link:hover {
  background: var(--primary-red);
  color: #14141a;
}
