﻿.login-page {
  background: #eef1f4;
  color: #1b2227;
  user-select: none;
  -webkit-user-select: none;
}

.login-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.login-panel {
  width: min(100%, 430px);
}

.login-brand {
  margin-bottom: 26px;
  text-align: center;
}
.login-brand h1 {
  margin: 16px 0 0;
  color: #6b767e;
  font-size: 17px;
  font-weight: 700;
}

.login-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border-radius: 16px;
  background: #212529;
}
.login-logo img {
  display: block;
  width: min(100%, 200px);
  height: auto;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-error,
.login-field__error {
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
}

.login-error:empty,
.login-field__error:empty {
  display: none;
}

.login-error ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-field__error {
  display: block;
  margin-top: 6px;
}

.login-field label {
  display: block;
  margin-bottom: 6px;
  color: #6b767e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.login-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1.5px solid #e2e6ea;
  border-radius: 12px;
  outline: none;
  background: #f4f6f8;
  color: #1b2227;
  font-size: 16px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.login-field input:focus {
  border-color: #fc5100;
  box-shadow: 0 0 0 3px rgba(252, 81, 0, 0.14);
}

.login-submit {
  min-height: 60px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: #fc5100;
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: background 120ms ease, transform 120ms ease;
}
.login-submit:hover {
  background: #e04800;
}
.login-submit:active {
  transform: scale(0.985);
}

.login-submit:focus-visible,
.login-forgot:focus-visible {
  outline: 3px solid rgba(252, 81, 0, 0.35);
  outline-offset: 3px;
}

.login-forgot {
  justify-self: center;
  margin-top: 2px;
  color: #fc5100;
  font-weight: 700;
  text-decoration: none;
}
.login-forgot:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .login-panel {
    padding: 38px 42px 42px;
    border: 1px solid #e2e6ea;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(27, 34, 39, 0.1);
  }
}
@media (max-height: 560px) {
  .login-shell {
    align-items: start;
  }
}
