/* Нэвтрэх, нууц үг сэргээх хуудсуудын загвар */
:root {
  --auth-primary: #1f3b64;
  --auth-primary-600: #1a3255;
  --auth-primary-700: #142843;
  --auth-accent: #b8913a;
  --auth-bg: #f2f4f7;
  --auth-border: #c8cfd9;
  --auth-text: #1f2a37;
  --auth-text-2: #475467;
  --auth-muted: #6b7686;
  --auth-danger: #a63a32;
  --auth-success: #2f6b4f;
}

html,
body.auth {
  height: 100%;
}

body.auth {
  margin: 0;
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: "Segoe UI", "PT Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.auth-shell {
  display: flex;
  min-height: 100vh;
}

/* Зүүн тал: байгууллагын мэдээлэл */
.auth-brand {
  position: relative;
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 56px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(20, 40, 67, 0.92) 0%, rgba(31, 59, 100, 0.88) 55%, rgba(20, 40, 67, 0.95) 100%),
    url('/assets/project/img/cover1.jpg') center / cover no-repeat;
  overflow: hidden;
}

.auth-brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--auth-accent);
}

.auth-brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand-top img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}

.auth-org {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.auth-org-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 2px;
}

.auth-brand-body {
  max-width: 520px;
}

.auth-brand-body .auth-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--auth-accent);
}

.auth-brand-body h1 {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

.auth-brand-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.auth-brand-foot {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Баруун тал: маягт */
.auth-panel {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #fff;
}

.auth-card {
  width: 100%;
  max-width: 380px;
}

.auth-mobile-logo {
  display: none;
}

.auth-card h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
  color: var(--auth-primary-700);
}

.auth-hint {
  margin: 0 0 26px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-text-2);
}

.auth-input {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input > svg {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--auth-muted);
  pointer-events: none;
}

.auth-input input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 40px;
  border: 1px solid var(--auth-border);
  border-radius: 6px;
  background: #fff;
  color: var(--auth-text);
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
  -moz-appearance: textfield;
}

.auth-input input::-webkit-outer-spin-button,
.auth-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.auth-input input:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(31, 59, 100, 0.14);
}

.auth-input input::placeholder {
  color: #98a2b3;
}

.auth-eye {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-eye:hover,
.auth-eye:focus {
  background: #f2f4f7;
  color: var(--auth-text);
  outline: none;
}

.auth-eye svg {
  width: 18px;
  height: 18px;
}

.auth-submit {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  border: 0;
  border-radius: 6px;
  background: var(--auth-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease;
}

.auth-submit:hover {
  background: var(--auth-primary-600);
}

.auth-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 59, 100, 0.25);
}

.auth-submit:disabled {
  opacity: .7;
  cursor: progress;
}

.auth-links {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.auth-links a {
  color: var(--auth-primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-alert {
  position: relative;
  margin-bottom: 16px;
  padding: 10px 36px 10px 12px;
  border-radius: 6px;
  border: 1px solid;
  font-size: 13px;
  line-height: 1.45;
}

.auth-alert-danger {
  background: #fbefee;
  border-color: #ebcdc9;
  color: var(--auth-danger);
}

.auth-alert-success {
  background: #edf5f0;
  border-color: #cfe2d6;
  color: var(--auth-success);
}

.auth-alert-info {
  background: #eef2f8;
  border-color: #dce4ef;
  color: var(--auth-primary-700);
}

.auth-alert .close {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 18px;
  line-height: 1;
  color: inherit;
  opacity: .6;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.auth-captcha {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 16px;
  border: 1px solid var(--auth-border);
  border-radius: 6px;
  font-size: 24px;
  letter-spacing: .2em;
  font-weight: 600;
  color: var(--auth-text);
  background: #fffefd url('/assets/portal/css/captcha.jpg');
  user-select: none;
}

.auth-apps {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #eaecf0;
}

.auth-apps span {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--auth-muted);
}

.auth-apps a {
  display: inline-block;
  margin-right: 8px;
}

.auth-apps img {
  height: 38px;
}

.auth-copy {
  display: none;
  margin-top: 24px;
  font-size: 12px;
  color: var(--auth-muted);
  text-align: center;
}

@media (max-width: 991px) {
  .auth-brand {
    padding: 32px;
  }

  .auth-brand-body h1 {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .auth-shell {
    flex-direction: column;
  }

  .auth-brand {
    flex: 0 0 auto;
    padding: 20px;
  }

  .auth-brand-body,
  .auth-brand-foot {
    display: none;
  }

  .auth-brand-top img {
    width: 44px;
    height: 44px;
  }

  .auth-org {
    font-size: 13px;
  }

  .auth-panel {
    flex: 1 1 auto;
    align-items: flex-start;
    padding: 28px 20px 32px;
  }

  .auth-card h2 {
    font-size: 21px;
  }

  .auth-copy {
    display: block;
  }
}
