.sr-auth-body {
  min-height: 100vh;
  background: #fff;
}

.sr-auth-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 317px;
  position: relative;
}

.sr-auth-language-form {
  position: absolute;
  top: 18px;
  right: 22px;
}

.sr-auth-language-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.sr-auth-language-form span {
  color: #6b7280;
  font-size: 13px;
}

.sr-auth-language-form select {
  height: 32px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff;
  color: #212529;
  padding: 0 8px;
  font-size: 13px;
}

.sr-auth-logo {
  width: 500px;
  max-width: calc(100vw - 32px);
  height: 120px;
  margin-bottom: 6px;
  background: url("../../images/logo.png") center / contain no-repeat;
}

.sr-auth-logo span {
  display: none;
}

.sr-auth-panel {
  width: min(500px, calc(100vw - 32px));
}

.sr-auth-panel form {
  display: grid;
  gap: 0;
}

.sr-auth-field {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.sr-auth-field span:first-child {
  color: #212529;
  font-size: 16px;
  font-weight: 400;
}

.sr-auth-field input {
  height: 38px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff;
  color: #495057;
  padding: 0 12px;
  font-size: 16px;
}

.sr-auth-field input:focus {
  border-color: #ced4da;
  outline: 0;
  box-shadow: none;
}

.sr-auth-field [data-valmsg-for],
.sr-validation-summary,
.sr-auth-field .field-validation-error {
  color: #b63030;
  font-size: 12px;
}

/* Редът под паролата: „Запомни ме" вляво, „Забравена парола?" вдясно (задание 1002). Класът
   sr-auth-link стоеше в изгледите без правило — връзката беше гола. */
.sr-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: -4px 0 0;
}

.sr-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #212529;
  font-size: 15px;
  cursor: pointer;
}

.sr-auth-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #fe6f2e;
}

.sr-auth-link {
  color: #c5531d;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sr-auth-link:hover,
.sr-auth-link:focus {
  color: #9e4015;
}

.sr-auth-panel form > .sr-auth-link {
  margin-top: 16px;
  justify-self: start;
}

.sr-auth-intro {
  margin: 0 0 16px;
  color: #495057;
  font-size: 15px;
  line-height: 1.45;
}

.sr-auth-panel .sr-button {
  height: 38px;
  min-height: 38px;
  margin-top: 25px;
  border-color: #8f8f8f;
  border-radius: 4px;
  background: #8f8f8f;
  font-size: 16px;
  font-weight: 400;
}

@media (max-height: 820px) {
  .sr-auth-main {
    padding-top: 28vh;
  }
}
