* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1d2733;
  background:
    linear-gradient(135deg, rgba(236, 50, 55, 0.92), rgba(29, 39, 51, 0.88)),
    url("../favicon.png") center / 360px auto repeat;
}

button,
input,
select {
  font: inherit;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.login-panel {
  width: min(100%, 420px);
  padding: 32px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.brand-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #edf0f4;
}

.eyebrow {
  margin: 0 0 6px;
  color: #ec3237;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: #1d2733;
}

.login-copy {
  margin: 0 0 22px;
  color: #5a6573;
  font-size: 15px;
  line-height: 1.45;
}

.loginBlock,
.inner {
  display: block;
}

.loginBlock form {
  display: grid;
  gap: 10px;
}

.loginBlock label {
  color: #313b49;
  font-size: 13px;
  font-weight: 700;
}

.loginBlock form input[type="text"],
.loginBlock form input[type="password"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cfd6df;
    border-radius: 6px;
    background: #ffffff;
    padding: 10px 12px;
    color: #1d2733;
    font-size: 26px;
    outline: none;
}

.loginBlock form input[type="text"]:focus,
.loginBlock form input[type="password"]:focus {
  border-color: #ec3237;
  box-shadow: 0 0 0 3px rgba(236, 50, 55, 0.15);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.loginBlock form button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: #ec3237;
  padding: 0 22px;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.loginBlock form button:hover,
.loginBlock form button:focus {
  background: #c9252a;
}

#alertBoxes {
  min-height: 0;
  margin-bottom: 14px;
}

.timer {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("login/loader.gif");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: contain;
}

.box-info,
.box-success,
.box-alert,
.box-error {
  border-width: 1px;
  border-style: solid;
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

.box-info {
  color: #00529b;
  background-color: #e8f5fc;
  border-color: #9bd2ef;
}

.box-success {
  color: #2f6b0b;
  background-color: #ecf7df;
  border-color: #b6df89;
}

.box-alert {
  color: #7a4a00;
  background-color: #fff4d1;
  border-color: #f4cf74;
}

.box-error {
  color: #9d1117;
  background-color: #ffe8e9;
  border-color: #f3a4a8;
}

.session_on {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #313b49;
  font-size: 14px;
}

.session_on a {
  color: #ec3237;
  font-weight: 700;
  text-decoration: none;
}

.session_on a:hover,
.session_on a:focus {
  text-decoration: underline;
}

#regist {
  display: none;
}

.register-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 12px;
  align-items: center;
}

.register-grid input,
.register-grid select {
  width: 100%;
}

@media (max-width: 480px) {
  .login-panel {
    padding: 24px;
  }

  .brand-block {
    align-items: flex-start;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  h1 {
    font-size: 24px;
  }

  .register-grid {
    grid-template-columns: 1fr;
  }
}
