/* Etqan Soft login: split layout. Navy brand panel with the large logo, light form side. Frappe ids/classes preserved for login.js. */
@font-face { font-family: "Readex Pro Variable"; font-style: normal; font-weight: 160 700; font-display: swap; src: url(/assets/etqan_client/fonts/readex-pro-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex Pro Variable"; font-style: normal; font-weight: 160 700; font-display: swap; src: url(/assets/etqan_client/fonts/readex-pro-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Readex Pro Variable"; font-style: normal; font-weight: 160 700; font-display: swap; src: url(/assets/etqan_client/fonts/readex-pro-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #25402d; --navy-2: #16291c; --brand: #4bb99b; --brand-2: #39c27f; --gold: #a1e6bb; --gold-ink: #8a6a00;
  --bg: #f3f8f6; --surface: #ffffff; --ink: #0f2014; --ink-2: #25402d; --muted: #5f7a6a; --line: rgba(37, 64, 45, .12); --line-2: rgba(37, 64, 45, .2);
  --danger: #d8434a; --success: #1f9d65; --r: 14px; --r-lg: 22px;
  --shadow: 0 24px 48px -28px rgba(37, 64, 45, .3), 0 1px 2px rgba(37, 64, 45, .06);
  --font: "Readex Pro Variable", "Segoe UI", Tahoma, system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul { margin: 0; } button, input { font: inherit; } .form-control { width: 100%; } a { text-decoration: none; }
.hide { display: none !important; } .text-muted { color: var(--muted); }
.etq-noscript { background: #fff1f2; color: #b3261e; padding: 12px 16px; text-align: center; font-size: 14px; }

/* shell */
.etq { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }

/* brand panel */
.etq-brand { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); display: flex; align-items: center; justify-content: center; text-align: center; padding: 36px 20px 30px; }
.etq-brand::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 320px at 85% -10%, rgba(161, 230, 187, .22), transparent 60%), radial-gradient(600px 420px at -10% 110%, rgba(57, 194, 127, .45), transparent 60%); }
.etq-brand::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%); }
.etq-brand-in { position: relative; z-index: 1; width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.etq-logo { width: 128px; height: 128px; color: #fff; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); animation: etq-float 6s ease-in-out infinite; }
.etq-logo svg { width: 100%; height: 100%; display: block; }
@keyframes etq-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.etq-brand-name { font-size: 32px; font-weight: 700; line-height: 1.15; margin-top: 8px; letter-spacing: .01em; }
.etq-brand-name small { display: block; font-size: inherit; font-weight: inherit; line-height: inherit; margin-top: 0; }
.etq-tagline { font-size: 14.5px; opacity: .82; max-width: 320px; }
.etq-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; width: 100%; text-align: start; }
.etq-points li { display: flex; align-items: center; gap: 12px; font-size: 14px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.etq-points svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--gold); }
.etq-brand-foot { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 13.5px; }
.etq-brand-foot a { color: #fff; opacity: .78; display: inline-flex; align-items: center; gap: 7px; transition: opacity .2s; direction: ltr; }
.etq-brand-foot a:hover { opacity: 1; }

/* form side */
.etq-main { display: flex; flex-direction: column; align-items: center; padding: 18px 16px 18px; min-width: 0; }
.etq-topbar { width: 100%; max-width: 460px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 8px; }
.etq-host { font-size: 13px; color: var(--muted); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etq-lang { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; color: var(--brand); background: var(--surface); border: 1px solid var(--line-2); transition: background .2s, border-color .2s; }
.etq-lang:hover { background: #e2f1ed; border-color: var(--brand); }
.etq-col { flex: 1 1 auto; width: 100%; max-width: 460px; display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; padding: 8px 0; }
.etq-section { width: 100%; min-width: 0; }

/* only the login section is visible until login.js routes (no signup / forgot flows) */
.for-email-login { display: none; }

/* heading + status */
.etq-head { margin-bottom: 14px; text-align: center; }
.etq-site-logo { max-height: 48px; max-width: 180px; margin: 0 auto 14px; display: block; }
.etq-title { font-size: 27px; font-weight: 700; color: var(--navy); line-height: 1.25; margin-bottom: 4px; text-wrap: balance; }
.etq-sub { color: var(--muted); font-size: 14.5px; }
.etq-head .indicator:empty { display: none !important; }
.etq-head .indicator { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 10px; background: #e2f1ed; color: var(--ink-2); animation: etq-in .3s var(--ease); }
.etq-head .indicator.red { background: #fdecec; color: #a62f33; } .etq-head .indicator.green { background: #e6f6ee; color: #176b46; } .etq-head .indicator.orange { background: #fff6d6; color: var(--gold-ink); }

/* card */
.etq-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px 22px; box-shadow: var(--shadow); overflow: hidden; max-width: 100%; }
.etq-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--brand) 55%, var(--gold)); }
.etq-rtl .etq-card::before { background: linear-gradient(270deg, var(--navy), var(--brand) 55%, var(--gold)); }
.etq-card .page-card-body { padding: 0; }
.etq-field { margin-bottom: 16px; }
.etq-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.etq-input { position: relative; display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.etq-input.is-focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(75, 185, 155, .12); }
.etq-ico { display: flex; align-items: center; justify-content: center; width: 46px; color: var(--muted); flex: 0 0 auto; transition: color .2s; }
.etq-input.is-focus .etq-ico { color: var(--brand); }
.etq-input .form-control { flex: 1 1 auto; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent !important; min-height: 50px; height: 50px; padding: 0 12px 0 0; font-size: 15.5px; font-family: var(--font); color: var(--ink); border-radius: 0; }
.etq-rtl .etq-input .form-control { padding: 0 0 0 12px; }
.etq-input .form-control:focus { outline: none; }
.etq-toggle { flex: 0 0 auto; padding: 0 14px; font-size: 12.5px; font-weight: 600; color: var(--brand); cursor: pointer; user-select: none; }
.etq-btn.btn, .etq-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border-radius: 12px; font-size: 15.5px; font-weight: 600; font-family: var(--font); border: 0; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, background .2s; }
.etq-btn.btn-primary { background: linear-gradient(135deg, var(--brand), var(--navy)); color: #fff !important; box-shadow: 0 12px 24px -12px rgba(75, 185, 155, .75); }
.etq-btn.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -12px rgba(75, 185, 155, .85); }
.etq-btn.btn-primary:active { transform: translateY(0); }
.etq-btn svg { transition: transform .2s; } .etq-btn:hover svg { transform: translateX(3px); } .etq-rtl .etq-btn svg { transform: scaleX(-1); } .etq-rtl .etq-btn:hover svg { transform: scaleX(-1) translateX(3px); }
.etq-btn.etq-btn-alt, .etq-btn.btn-default { background: #fff; color: var(--navy) !important; border: 1.5px solid var(--line-2) !important; margin-top: 10px; }
.etq-btn.etq-btn-alt:hover { background: #f3f5fc; }
.page-card-actions { margin-top: 6px; }
.etq-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 6px; color: var(--muted); font-size: 12.5px; }
.etq-divider::before, .etq-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.etq-social .social-login-buttons .login-button-wrapper { margin-top: 6px; }
.etq-foot-link { text-align: center; font-size: 14px; color: var(--muted); margin-top: 12px; }
.etq-foot-link a { font-weight: 600; color: var(--brand); }

/* notices + announcements */
.etq-notice { padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.55; border: 1px solid; }
.etq-notice-warning { background: #fff8dc; border-color: rgba(161, 230, 187, .5); color: var(--gold-ink); }
.etq-notice-info { background: #e2f1ed; border-color: rgba(75, 185, 155, .18); color: var(--ink-2); }
.etq-kicker { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.etq-rtl .etq-kicker { letter-spacing: 0; }
.etq-ann-wrap { display: grid; gap: 8px; }
.etq-ann { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--brand-2); }
.etq-ann-warning { border-inline-start-color: var(--gold); } .etq-ann-critical { border-inline-start-color: var(--danger); }
.etq-ann h3 { font-size: 14px; font-weight: 600; margin-bottom: 2px; color: var(--ink); }
.etq-ann-body { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); } .etq-ann-body p:last-child { margin-bottom: 0; }

/* footer */
.etq-foot { width: 100%; max-width: 460px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; font-size: 12.5px; color: var(--muted); padding-top: 18px; }
.etq-foot-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.etq-foot a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--brand); font-weight: 600; transition: border-color .2s, background .2s; }
.etq-foot a:hover { border-color: var(--brand); background: #e2f1ed; }
.etq-foot a, .etq-brand-foot a, .etq-foot a span { direction: ltr; unicode-bidi: isolate; }

/* inquiry / suggestion button + dialog */
.etq-fb-row { display: flex; justify-content: center; }
.etq-fb-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--navy); font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s, transform .15s var(--ease); }
.etq-fb-btn:hover { border-color: var(--brand); background: #e2f1ed; transform: translateY(-1px); }
.etq-fb-btn svg { color: var(--brand); }
.etq-locked { overflow: hidden; }
.etq-fb-backdrop { position: fixed; inset: 0; z-index: 1100; background: rgba(15, 32, 20, .5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: etq-fade .2s ease; }
.etq-fb-backdrop[hidden] { display: none; }
@keyframes etq-fade { from { opacity: 0; } to { opacity: 1; } }
.etq-fb-dialog { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border-radius: 22px; padding: 26px 24px 22px; box-shadow: 0 40px 80px -30px rgba(15, 32, 20, .6); animation: etq-in .35s var(--ease); }
.etq-fb-dialog::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--brand) 55%, var(--gold)); }
.etq-fb-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.etq-fb-close:hover { background: #e2f1ed; color: var(--navy); }
.etq-fb-head { text-align: center; margin-bottom: 16px; padding: 0 24px; }
.etq-fb-head h2, .etq-fb-done h2 { font-size: 21px; color: var(--navy); margin: 8px 0 4px; }
.etq-fb-head p, .etq-fb-done p { color: var(--muted); font-size: 14px; }
.etq-fb-ico { width: 52px; height: 52px; border-radius: 16px; background: #e2f1ed; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.etq-fb-ico svg { width: 24px; height: 24px; }
.etq-fb-ico-ok { background: #e6f6ee; color: var(--success); }
.etq-fb-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 16px; }
.etq-fb-type { position: relative; cursor: pointer; }
.etq-fb-type input { position: absolute; opacity: 0; inset: 0; }
.etq-fb-type span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: #fff; text-align: center; transition: all .2s; }
.etq-fb-type input:checked + span { border-color: var(--brand); background: #e2f1ed; color: var(--brand); }
.etq-fb-type input:focus-visible + span { box-shadow: 0 0 0 4px rgba(75, 185, 155, .12); }
.etq-fb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.etq-input-plain .form-control { padding-inline-start: 14px; }
.etq-input-area { align-items: stretch; }
.etq-input-area textarea.form-control { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.etq-fb-error { background: #fdecec; color: #a62f33; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; }
.etq-fb-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.etq-fb-actions .etq-btn-alt { margin-top: 0; }
.etq-btn.is-busy { opacity: .7; pointer-events: none; }
.etq-fb-done { text-align: center; padding: 10px 0 4px; }
.etq-fb-done .etq-btn { margin-top: 16px; }
@media (max-width: 480px) { .etq-fb-grid { grid-template-columns: 1fr; } .etq-fb-dialog { padding: 22px 16px 18px; border-radius: 18px; } .etq-fb-head { padding: 0 8px; } }

/* 2FA / OTP markup injected by login.js */
.etq-card .form-verify .form-control, .etq-card input.form-control:not(.etq-input .form-control) { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line-2); font-family: var(--font); padding: 0 12px; }
.etq-card .btn-verify, .etq-card .form-verify .btn { min-height: 46px; border-radius: 12px; background: var(--brand); color: #fff; border: 0; width: 100%; font-weight: 600; margin-top: 8px; }

/* msgprint modal (frappe-web) without the website stylesheet */
.modal-backdrop { position: fixed; inset: 0; background: rgba(11, 18, 56, .45); z-index: 1040; }
.modal { position: fixed; inset: 0; z-index: 1050; display: none; overflow: auto; } .modal.show { display: block; }
.modal-dialog { max-width: 420px; margin: 12vh auto; padding: 0 16px; } .modal-content { background: #fff; color: var(--ink); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); } .modal-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 600; color: var(--navy); } .modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; } .modal .btn { border-radius: 10px; padding: 8px 14px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; } .modal .btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }

/* reveal */
.etq-reveal { opacity: 0; transform: translateY(10px); animation: etq-in .6s var(--ease) forwards; }
.etq-reveal-1 { animation-delay: .02s; } .etq-reveal-2 { animation-delay: .1s; } .etq-reveal-3 { animation-delay: .2s; } .etq-reveal-4 { animation-delay: .3s; }
@keyframes etq-in { to { opacity: 1; transform: translateY(0); } }

/* phones and tablets: brand band on top, form below */
@media (max-width: 899px) {
  .etq-brand { border-radius: 0 0 22px 22px; padding: 14px 18px 16px; justify-content: flex-start; text-align: start; }
  .etq-brand-in { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 0; align-items: center; max-width: 100%; }
  .etq-logo { grid-row: 1 / span 2; width: 54px; height: 54px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .3)); animation: etq-in .6s var(--ease) forwards; }
  .etq-brand-name { font-size: 19px; margin-top: 0; line-height: 1.2; align-self: end; } .etq-brand-name small { display: inline; font-size: inherit; margin-inline-start: 10px; }
  .etq-tagline { font-size: 12px; margin-top: 2px; max-width: none; opacity: .75; align-self: start; } .etq-points, .etq-brand-foot { display: none; }
  .etq-main { padding: 12px 16px 16px; }
  .etq-topbar { margin-bottom: 0; }
  .etq-col { justify-content: flex-start; padding-top: 4px; }
  .etq-title { font-size: 23px; }
  .etq-card { padding: 20px 16px 18px; border-radius: 18px; }
}
/* desktop: two panels, brand pinned, form side scrolls */
@media (min-width: 900px) {
  .etq { grid-template-columns: minmax(380px, 44%) minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
  .etq-brand { padding: 48px 40px; }
  .etq-main { overflow: auto; padding: 22px 40px 22px; }
  .etq-topbar, .etq-col, .etq-foot { max-width: 480px; }
  .etq-card { padding: 28px 28px 24px; }
}
@media (min-width: 1400px) { .etq-logo { width: 150px; height: 150px; } .etq-brand-name { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) {
  .etq-logo { animation: none; }
  .etq-reveal { opacity: 1; transform: none; animation: none; }
  .etq-btn, .etq-input, .etq-lang { transition: none; }
}
