:root {
  --login-css-version: "1.3";
}

:root {
  --brand: #8c173d;
  --brand-dark: #781235;
  --text: #351627;
  --muted: #6f5b66;
  --line: #e5dfe3;
  --surface: #fff;
  --page: #f7f7f7;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 46px 0 56px;
  background: linear-gradient(180deg, #b32757 0%, var(--brand-dark) 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.brand img {
  width: 174px;
  height: auto;
  display: block;
}

.language {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.language img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.page-shell {
  min-height: calc(100vh - 78px);
  padding: 80px 24px 40px;
  background-image: url("../login/images/web/art_bg.png");
  background-repeat: no-repeat;
  background-position: right 180px center;
  background-size: 270px auto;
}

.login-card {
  width: min(1180px, 100%);
  min-height: 545px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2.1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  /*! box-shadow: 0 8px 24px rgba(70, 36, 52, .08); */
  border-radius: 18px 0 0 18px;
  overflow: hidden;
}

.left-panel {
  padding: 32px;
}

.login-section,
.register-section {
  border-bottom: 1px solid var(--line);
}

.login-section {
  min-height: 220px;
  padding-bottom: 48px;
}

.login-section h1,
.register-section h2,
.links-section h2 {
  margin: 0;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.login-section p,
.register-section p {
  margin: 6px 0 0;
  color: #22141b;
  line-height: 1.45;
}

[v-cloak] {
  display: none;
}

.loading {
  min-height: 110px;
  display: grid;
  place-items: center;
}

.loader {
  width: 42px;
  height: 42px;
  display: block;
  border: 4px solid #ead8df;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) 104px;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
}

input {
  width: 100%;
  height: 44px;
  border: 1px solid #cfc8cc;
  border-radius: 4px;
  padding: 0 14px;
  color: var(--text);
  font: inherit;
  background: #fff;
}

input::placeholder {
  color: #4f4249;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-left: 74px;
}

.show-btn {
  position: absolute;
  top: 7px;
  left: 8px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid #d9d3d6;
  color: #666;
  background: #f3f1f2;
  font: inherit;
}

.login-btn {
  height: 36px;
  border: 0;
  border-radius: 20px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.forgot-row {
  display: grid;
  grid-template-columns: 1fr 1fr 104px;
  gap: 16px;
  margin-top: 12px;
}

.forgot-row a,
.outline-btn,
.useful-links a {
  color: var(--brand);
  text-decoration: none;
}

.register-section {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.register-section p {
  max-width: 430px;
}

.outline-btn {
  flex: 0 0 auto;
  min-width: 112px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 20px;
  background: #fff;
}

.links-section {
  padding-top: 32px;
}

.useful-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.useful-links a {
  min-height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: #2b2026;
}

.useful-links img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.safety-panel {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #fff;
}

.safety-panel img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .topbar {
    padding: 0 22px;
  }

  .page-shell {
    padding-top: 28px;
  }

  .login-card {
    grid-template-columns: 1fr;
  }

  .safety-panel {
    padding-top: 0;
  }

  .safety-panel img {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .brand img {
    width: 150px;
  }

  .left-panel {
    padding: 24px 18px;
  }

  .login-row,
  .forgot-row {
    grid-template-columns: 1fr;
  }

  .register-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .useful-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

[dir="rtl"] input {
  text-align: right;
}

[dir="rtl"] .login-row,
[dir="rtl"] .forgot-row {
  direction: rtl;
}

[dir="rtl"] .show-btn {
  right: auto;
}