/* One login design for iswithin.net/login and my.iswithin.net/login. Identical copies:
   public-site/website/login.css and web/biz-assets/site/login.css (a test checks they match). */
/* the Log in button in the bar shows as current on this page */
.bar .login[aria-current="page"] { background: rgba(255,255,255,0.18); box-shadow: inset 0 0 0 1.5px #fff; }

.lg-wrap { position: relative; z-index: 2; min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 48px 20px 64px; }
.lg-card { width: min(460px, 100%); padding: 32px 30px 28px; border-radius: 26px; background: rgba(14,18,34,0.62); }
.lg-mark { width: 52px; height: 52px; border-radius: 15px; background: var(--blue); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(13,65,225,0.5); }
.lg-mark img { width: 30px; display: block; }
.lg-card h1 { margin: 20px 0 0; font-family: "Anton", Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-size: 44px; line-height: .95; letter-spacing: -.4px; }
.lg-sub { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,0.7); }

/* account type */
.lg-type { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); }
.lg-type button { position: relative; z-index: 1; height: 38px; border: 0; background: none; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.7); cursor: pointer; transition: color 200ms; }
.lg-type button[aria-pressed="true"] { color: #fff; }
.lg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); border-radius: 10px; background: var(--blue); box-shadow: 0 4px 14px rgba(13,65,225,0.45); transition: transform 280ms cubic-bezier(.3,.7,.2,1); }
.lg-hint { margin: 10px 2px 0; font-size: 12.5px; color: rgba(255,255,255,0.55); min-height: 18px; }

.lg-form { margin-top: 18px; display: grid; gap: 14px; }
.lg-field label { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.86); margin-bottom: 7px; }
.lg-field label a { font-size: 12.5px; font-weight: 600; color: var(--blue-light); }
.lg-field label a:hover { color: #fff; }
.lg-input { position: relative; }
.lg-input input {
  width: 100%; height: 50px; font: inherit; font-size: 15px; color: #fff;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); border-radius: 13px;
  padding: 0 14px; outline: none; transition: border-color 160ms, background 160ms, box-shadow 160ms;
}
.lg-input input::placeholder { color: rgba(255,255,255,0.4); }
.lg-input input:focus { border-color: var(--blue-light); background: rgba(255,255,255,0.1); box-shadow: 0 0 0 3px rgba(13,65,225,0.35); }
.lg-input .eye { position: absolute; right: 6px; top: 6px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: rgba(255,255,255,0.6); cursor: pointer; display: grid; place-items: center; }
.lg-input .eye:hover { color: #fff; background: rgba(255,255,255,0.08); }
.lg-input.pw input { padding-right: 50px; }

.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -4px; }
.lg-forgot { font-size: 13.5px; font-weight: 600; color: var(--blue-light); white-space: nowrap; }
.lg-forgot:hover { color: #fff; }
.lg-row-end { justify-content: flex-end; }

.lg-btn { height: 52px; border: 0; border-radius: 14px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; font-size: 15.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 8px 22px rgba(13,65,225,0.45); transition: background 160ms, transform 160ms; }
.lg-btn:hover { background: rgb(30,82,240); }
.lg-alert { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255,90,90,.14); border: 1px solid rgba(255,120,120,.35); color: #ffd7d7; font-size: 14px; line-height: 1.45; }
.lg-btn:active { transform: scale(.985); }
.lg-portal { display: flex; width: 100%; margin-top: 18px; text-decoration: none; }

.lg-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.14); }
.lg-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lg-social button { height: 46px; border-radius: 13px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.05); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; transition: background 160ms; }
.lg-social button:hover { background: rgba(255,255,255,0.12); }

.lg-foot { margin: 22px 0 0; text-align: center; font-size: 14px; color: rgba(255,255,255,0.7); }
.lg-foot a { color: #fff; font-weight: 700; border-bottom: 1.5px solid var(--blue-light); }

.lg-view { animation: lgin 320ms cubic-bezier(.2,.7,.2,1); }
@keyframes lgin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.lg-legal { margin-top: 18px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.45); }
.lg-legal a { color: rgba(255,255,255,0.7); text-decoration: underline; text-underline-offset: 2px; }

/* ── shared by iswithin.net/login and my.iswithin.net/login (one login design) ── */
.lg-type a.lg-tab { position: relative; z-index: 1; height: 38px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.7); display: grid; place-items: center; text-decoration: none; }
.lg-type a.lg-tab:hover { color: #fff; }
.lg-alert.ok { background: rgba(80,220,150,.14); border-color: rgba(120,230,170,.38); color: #d6ffe8; }
.lg-alert.info { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.9); }
.lg-msg { min-height: 20px; margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: #ffc1cb; }
.lg-msg.ok { color: #b8f5d2; }
.lg-msg:empty { display: none; }
.lg-field.bad .lg-input input { border-color: rgb(255,120,140); }
.lg-code { letter-spacing: 10px; text-align: center; font-size: 24px !important; font-weight: 700; direction: ltr; }
.lg-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--blue-light); cursor: pointer; }
.lg-link:hover { color: #fff; }
.lg-link[disabled] { opacity: .55; cursor: default; color: rgba(255,255,255,.6); }
.lg-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.lg-btn[disabled] { opacity: .6; cursor: default; }
.lg-google { display: flex; width: 100%; height: 50px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.2); background: #fff; color: #1f1f1f; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; align-items: center; justify-content: center; gap: 10px; transition: background 160ms; }
.lg-google:hover { background: #f1f3f8; }
.lg-apple { display: flex; width: 100%; height: 50px; margin-top: 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.28); background: #000; color: #fff; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; align-items: center; justify-content: center; gap: 10px; transition: background 160ms; }
.lg-apple:hover { background: #1b1b1f; }
.lg-google[hidden], .lg-apple[hidden] { display: none; }
.lg-card h2 { margin: 20px 0 0; font-family: "Anton", Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-size: 36px; line-height: .95; }
.lg-select { width: 100%; height: 50px; border-radius: 13px; padding: 0 12px; font: inherit; color: #fff; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); }
.lg-select option { color: #111; }
html[dir=rtl] .lg-type { direction: ltr; } /* the switch keeps its order in Arabic, as on iswithin.net (i18n.js) */
html[dir=rtl] .lg-input .eye { right: auto; left: 6px; }
html[dir=rtl] .lg-input.pw input { padding-right: 14px; padding-left: 50px; }

@media (max-width: 560px) {
  .lg-wrap { padding: 28px 14px 40px; place-items: start center; }
  .lg-card { padding: 26px 20px 22px; }
  .lg-card h1 { font-size: 38px; }
  .bar .login { display: none; }
}
