html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.login_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 95vh;
  padding: 20px 10px;
}

.login_content {
  display: flex;
  flex-direction: column;
  width: 520px;
  height: 600px;
  padding: 40px 20px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.1);
}

.login_form_area {
  margin-top: 40px;
}

.auth_head {
  margin-bottom: 20px;
  text-align: center;
}

.auth_head .auth_title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.auth_head .auth_desc {
  margin: 10px 0 0;
  font-size: 14px;
  color: rgba(17, 24, 39, 0.6);
}

.auth_form {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  gap: 10px;
}

.auth_field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth_label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.7);
}

.auth_input {
  width: 100%;
  max-height: 38px;
  padding: 10px 15px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.auth_input:focus {
  border-color: rgba(17, 24, 39, 0.35);
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.auth_check {
  display: flex;
  align-items: center;
  margin-top: 6px;
  gap: 10px;
  font-size: 14px;
  color: rgba(17, 24, 39, 0.7);
}

.auth_check_input {
  width: 18px;
  height: 18px;
  accent-color: #182c5b;
}

.auth_actions {
  margin-top: 10px;
}

.auth_btn {
  width: 100%;
  height: 50px;
  margin-top: 60px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: #e9322c;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    opacity 0.12s ease;
}

.auth_btn:hover {
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.18);
}

.auth_btn:active {
  transform: translateY(1px);
}

.auth_links {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  padding-top: 16px;
  gap: 10px;
}

.auth_link {
  font-size: 14px;
  color: rgba(17, 24, 39, 0.62);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth_flash {
  margin-top: 16px;
  padding: 10px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.06);
}

.auth_flash.is-reserved {
  display: none;
}

.auth_flash_item {
  margin: 0 32px;
  font-size: 14px;
  color: rgba(185, 28, 28, 0.85);
}

.auth_flash_item--placeholder {
  visibility: hidden;
}

@media (max-width: 768px) {
  .login_content {
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 375px) {
  .auth_footer,
  .auth_links {
    display: none;
  }

  .login_wrapper {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    min-height: auto;
    padding: 0;
  }

  .login_content {
    width: 100%;
    height: calc(100vw * 555 / 375);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .login_head_area {
    padding: calc(100vw * 14 / 375) 0 calc(100vw * 10 / 375);
    border-bottom: calc(100vw * 1 / 375) solid #495d8b;
  }

  .auth_head {
    margin: 0;
    padding-left: calc(100vw * 40 / 375);
    text-align: left;
  }

  .auth_head .auth_title {
    font-size: calc(100vw * 22 / 375);
    font-weight: 700;
    color: #495d8b;
  }

  .login_form_area {
    margin-top: calc(100vw * 92 / 375);
    padding: 0 calc(100vw * 40 / 375);
  }

  .auth_form {
    margin-top: 0;
    gap: calc(100vw * 25 / 375);
  }

  .auth_field {
    gap: 0;
  }

  .auth_input {
    max-height: none;
    height: calc(100vw * 50 / 375);
    padding: 0 calc(100vw * 16 / 375);
    border: calc(100vw * 1 / 375) solid rgba(17, 24, 39, 0.16);
    border-radius: calc(100vw * 8 / 375);
    font-size: calc(100vw * 14 / 375);
    background: #ffffff;
    box-shadow: none;
  }

  .auth_input:focus {
    border-color: rgba(17, 24, 39, 0.22);
    box-shadow: none;
  }

  .password_wrapper input {
    padding-right: calc(100vw * 44 / 375);
  }

  .password_toggle {
    right: calc(100vw * 12 / 375);
  }

  .auth_flash {
    min-height: calc(100vw * 56 / 375);
    margin-top: calc(100vw * 12 / 375);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .auth_flash.is-reserved {
    display: block;
  }

  .auth_flash_item {
    line-height: 1.65;
    color: #e00000;
  }

  .auth_actions {
    margin-top: calc(100vw * 120 / 375);
  }

  .auth_btn {
    height: calc(100vw * 55 / 375);
    margin-top: 0;
    border: 0;
    border-radius: calc(100vw * 6 / 375);
    box-shadow: 0 calc(100vw * 6 / 375) calc(100vw * 12 / 375)
      rgba(17, 24, 39, 0.22);
    font-size: calc(100vw * 18 / 375);
    font-weight: 700;
    background: #495d8b;
  }

  .auth_btn:hover {
    box-shadow: 0 calc(100vw * 6 / 375) calc(100vw * 12 / 375)
      rgba(17, 24, 39, 0.22);
  }

  .auth_btn:active {
    transform: translateY(1px);
  }
}

.password_wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password_wrapper input {
  width: 100%;
  padding-right: 40px;
}

.password_toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
}

.password_toggle img {
  display: block;
  width: 20px;
  height: 16px;
}

body.auth:has(.login_page) .auth_footer {
  display: none;
}

.login_container.login_page .auth_links {
  display: none;
}

@media (max-width: 768px) {
  body.auth:has(.login_page--general) {
    background-color: #ffffff;
  }

  .login_container.login_page--general .login_wrapper {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    min-height: auto;
    padding: 0;
  }

  .login_container.login_page--general .login_content {
    width: 100%;
    max-width: none;
    height: calc(100vw * 555 / 375);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .login_container.login_page--general .login_head_area {
    padding: calc(100vw * 14 / 375) 0 calc(100vw * 10 / 375);
    border-bottom: calc(100vw * 1 / 375) solid #495d8b;
  }

  .login_container.login_page--general .auth_head {
    margin: 0;
    padding-left: calc(100vw * 40 / 375);
    text-align: left;
  }

  .login_container.login_page--general .auth_head .auth_title {
    font-size: calc(100vw * 22 / 375);
    font-weight: 700;
    color: #495d8b;
  }

  .login_container.login_page--general .login_form_area {
    margin-top: calc(100vw * 92 / 375);
    padding: 0 calc(100vw * 40 / 375);
  }

  .login_container.login_page--general .auth_form {
    margin-top: 0;
    gap: calc(100vw * 25 / 375);
  }

  .login_container.login_page--general .auth_field {
    gap: 0;
  }

  .login_container.login_page--general .auth_input {
    max-height: none;
    height: calc(100vw * 50 / 375);
    padding: 0 calc(100vw * 16 / 375);
    border: calc(100vw * 1 / 375) solid rgba(147, 147, 147, 0.75);
    border-radius: calc(100vw * 8 / 375);
    font-size: calc(100vw * 14 / 375);
    background: #ffffff;
    box-shadow: none;
    transition: border-color 0.15s ease;
  }

  .login_container.login_page--general .auth_input:focus {
    border-color: #6d6d6d;
    box-shadow: none;
  }

  .login_container.login_page--general .password_wrapper input {
    padding-right: calc(100vw * 44 / 375);
  }

  .login_container.login_page--general .password_toggle {
    right: calc(100vw * 12 / 375);
  }

  .login_container.login_page--general .auth_flash {
    display: flex;
    width: calc(100vw * 230 / 375);
    max-width: 100%;
    min-height: calc(100vw * 56 / 375);
    margin-top: calc(100vw * 12 / 375);
    margin-left: auto;
    margin-right: auto;
    padding: 0 calc(100vw * 4 / 375);
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    box-sizing: border-box;
  }

  .login_container.login_page--general .auth_flash.is-reserved {
    display: block;
  }

  .login_container.login_page--general .auth_flash_item {
    width: 100%;
    max-width: calc(100vw * 230 / 375);
    margin: 0 auto;
    line-height: 1.65;
    color: #e00000;
    box-sizing: border-box;
  }

  .login_container.login_page--general .auth_actions {
    margin-top: calc(100vw * 120 / 375);
  }

  .login_container.login_page--general .auth_btn {
    height: calc(100vw * 55 / 375);
    margin-top: 0;
    border: 0;
    border-radius: calc(100vw * 6 / 375);
    box-shadow: 0 calc(100vw * 6 / 375) calc(100vw * 12 / 375)
      rgba(17, 24, 39, 0.22);
    font-size: calc(100vw * 18 / 375);
    font-weight: 700;
    background: #495d8b;
  }

  .login_container.login_page--general .auth_btn:hover {
    box-shadow: 0 calc(100vw * 6 / 375) calc(100vw * 12 / 375)
      rgba(17, 24, 39, 0.22);
  }

  .login_container.login_page--general .auth_btn:active {
    transform: translateY(1px);
  }
}

@media (min-width: 769px) {
  body.auth:has(.login_page--general) {
    background-color: #f8f8f8;
  }

  .login_container.login_page--general .login_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
  }

  .login_container.login_page--general .login_content {
    width: min(580px, 100%);
    max-width: 580px;
    height: 600px;
    min-height: 600px;
    padding: 40px 48px 36px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
    box-sizing: border-box;
  }

  .login_container.login_page--general .login_head_area {
    padding: 0;
    border-bottom: none;
  }

  .login_container.login_page--general .auth_head {
    margin: 0 0 8px;
    padding: 0;
    text-align: center;
  }

  .login_container.login_page--general .auth_head .auth_title {
    font-size: 22px;
    font-weight: 700;
    color: #4e638e;
  }

  .login_container.login_page--general .login_form_area {
    margin-top: 28px;
    padding: 0;
  }

  .login_container.login_page--general .auth_form {
    display: flex;
    align-items: center;
    margin-top: 0;
    gap: 0;
  }

  .login_container.login_page--general .auth_field + .auth_field {
    margin-top: 14px;
  }

  .login_container.login_page--general .auth_field {
    align-self: center;
    width: 320px;
    max-width: 100%;
    gap: 0;
  }

  .login_container.login_page--general .auth_input {
    width: 100%;
    max-height: none;
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(147, 147, 147, 0.75);
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
  }

  .login_container.login_page--general .auth_input::placeholder {
    color: #b0b0b0;
  }

  .login_container.login_page--general .auth_input:focus {
    border-color: #6d6d6d;
    box-shadow: none;
  }

  .login_container.login_page--general .password_wrapper {
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
  }

  .login_container.login_page--general .password_wrapper input {
    padding-right: 44px;
  }

  .login_container.login_page--general .password_toggle {
    right: 12px;
  }

  .login_container.login_page--general .auth_flash {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 275px;
    max-width: 100%;
    min-height: 160px;
    height: 160px;
    margin-top: 0;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    box-sizing: border-box;
  }

  .login_container.login_page--general .auth_flash.is-reserved {
    display: flex;
  }

  .login_container.login_page--general .auth_flash_item {
    width: 100%;
    max-width: 275px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #e00000;
    box-sizing: border-box;
  }

  .login_container.login_page--general .auth_flash_item--placeholder {
    visibility: hidden;
  }

  .login_container.login_page--general .auth_actions {
    width: 320px;
    max-width: 100%;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .login_container.login_page--general .auth_btn {
    width: 100%;
    height: 50px;
    margin-top: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: #4e638e;
    box-sizing: border-box;
  }

  .login_container.login_page--general .auth_btn:hover {
    box-shadow: 0 8px 16px rgba(17, 24, 39, 0.2);
  }

  .login_container.login_page--general .auth_btn:active {
    transform: translateY(1px);
  }
}

@media (max-width: 768px) {
  body.auth:has(.login_page--manager) {
    background-color: #ffffff;
  }

  .login_container.login_page--manager .login_wrapper {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    min-height: auto;
    padding: 0;
  }

  .login_container.login_page--manager .login_content {
    width: 100%;
    max-width: none;
    height: calc(100vw * 555 / 375);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .login_container.login_page--manager .login_head_area {
    padding: calc(100vw * 14 / 375) 0 calc(100vw * 10 / 375);
    border-bottom: calc(100vw * 1 / 375) solid #495d8b;
  }

  .login_container.login_page--manager .auth_head {
    margin: 0;
    padding-left: calc(100vw * 40 / 375);
    text-align: left;
  }

  .login_container.login_page--manager .auth_head .auth_title {
    font-size: calc(100vw * 22 / 375);
    font-weight: 700;
    color: #495d8b;
  }

  .login_container.login_page--manager .auth_head .auth_desc {
    margin-top: calc(100vw * 6 / 375);
    font-size: calc(100vw * 14 / 375);
    font-weight: 700;
    color: #495d8b;
  }

  .login_container.login_page--manager .login_form_area {
    margin-top: calc(100vw * 92 / 375);
    padding: 0 calc(100vw * 40 / 375);
  }

  .login_container.login_page--manager .auth_form {
    margin-top: 0;
    gap: calc(100vw * 25 / 375);
  }

  .login_container.login_page--manager .auth_field {
    gap: 0;
  }

  .login_container.login_page--manager .auth_input {
    max-height: none;
    height: calc(100vw * 50 / 375);
    padding: 0 calc(100vw * 16 / 375);
    border: calc(100vw * 1 / 375) solid rgba(147, 147, 147, 0.75);
    border-radius: calc(100vw * 8 / 375);
    font-size: calc(100vw * 14 / 375);
    background: #ffffff;
    box-shadow: none;
    transition: border-color 0.15s ease;
  }

  .login_container.login_page--manager .auth_input:focus {
    border-color: #6d6d6d;
    box-shadow: none;
  }

  .login_container.login_page--manager .password_wrapper input {
    padding-right: calc(100vw * 44 / 375);
  }

  .login_container.login_page--manager .password_toggle {
    right: calc(100vw * 12 / 375);
  }

  .login_container.login_page--manager .auth_flash {
    display: flex;
    width: calc(100vw * 230 / 375);
    max-width: 100%;
    min-height: calc(100vw * 56 / 375);
    margin-top: calc(100vw * 12 / 375);
    margin-left: auto;
    margin-right: auto;
    padding: 0 calc(100vw * 4 / 375);
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    box-sizing: border-box;
  }

  .login_container.login_page--manager .auth_flash.is-reserved {
    display: block;
  }

  .login_container.login_page--manager .auth_flash_item {
    width: 100%;
    max-width: calc(100vw * 230 / 375);
    margin: 0 auto;
    line-height: 1.65;
    color: #e00000;
    box-sizing: border-box;
  }

  .login_container.login_page--manager .auth_actions {
    margin-top: calc(100vw * 120 / 375);
  }

  .login_container.login_page--manager .auth_btn {
    height: calc(100vw * 55 / 375);
    margin-top: 0;
    border: 0;
    border-radius: calc(100vw * 6 / 375);
    box-shadow: 0 calc(100vw * 6 / 375) calc(100vw * 12 / 375)
      rgba(17, 24, 39, 0.22);
    font-size: calc(100vw * 18 / 375);
    font-weight: 700;
    background: #495d8b;
  }

  .login_container.login_page--manager .auth_btn:hover {
    box-shadow: 0 calc(100vw * 6 / 375) calc(100vw * 12 / 375)
      rgba(17, 24, 39, 0.22);
  }

  .login_container.login_page--manager .auth_btn:active {
    transform: translateY(1px);
  }
}

@media (min-width: 769px) {
  body.auth:has(.login_page--manager) {
    background-color: #f8f8f8;
  }

  .login_container.login_page--manager .login_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
  }

  .login_container.login_page--manager .login_content {
    width: min(580px, 100%);
    max-width: 580px;
    height: 600px;
    min-height: 600px;
    padding: 40px 48px 36px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
    box-sizing: border-box;
  }

  .login_container.login_page--manager .login_head_area {
    padding: 0;
    border-bottom: none;
  }

  .login_container.login_page--manager .auth_head {
    margin: 0 0 8px;
    padding: 0;
    text-align: center;
  }

  .login_container.login_page--manager .auth_head .auth_title {
    font-size: 22px;
    font-weight: 700;
    color: #4e638e;
  }

  .login_container.login_page--manager .auth_head .auth_desc {
    margin: 8px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: #4e638e;
  }

  .login_container.login_page--manager .login_form_area {
    margin-top: 28px;
    padding: 0;
  }

  .login_container.login_page--manager .auth_form {
    display: flex;
    align-items: center;
    margin-top: 0;
    gap: 0;
  }

  .login_container.login_page--manager .auth_field + .auth_field {
    margin-top: 14px;
  }

  .login_container.login_page--manager .auth_field {
    align-self: center;
    width: 320px;
    max-width: 100%;
    gap: 0;
  }

  .login_container.login_page--manager .auth_input {
    width: 100%;
    max-height: none;
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(147, 147, 147, 0.75);
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
  }

  .login_container.login_page--manager .auth_input::placeholder {
    color: #b0b0b0;
  }

  .login_container.login_page--manager .auth_input:focus {
    border-color: #6d6d6d;
    box-shadow: none;
  }

  .login_container.login_page--manager .password_wrapper {
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
  }

  .login_container.login_page--manager .password_wrapper input {
    padding-right: 44px;
  }

  .login_container.login_page--manager .password_toggle {
    right: 12px;
  }

  .login_container.login_page--manager .auth_flash {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 275px;
    max-width: 100%;
    min-height: 160px;
    height: 160px;
    margin-top: 0;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    box-sizing: border-box;
  }

  .login_container.login_page--manager .auth_flash.is-reserved {
    display: flex;
  }

  .login_container.login_page--manager .auth_flash_item {
    width: 100%;
    max-width: 275px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #e00000;
    box-sizing: border-box;
  }

  .login_container.login_page--manager .auth_flash_item--placeholder {
    visibility: hidden;
  }

  .login_container.login_page--manager .auth_actions {
    width: 320px;
    max-width: 100%;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .login_container.login_page--manager .auth_btn {
    width: 100%;
    height: 50px;
    margin-top: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: #4e638e;
    box-sizing: border-box;
  }

  .login_container.login_page--manager .auth_btn:hover {
    box-shadow: 0 8px 16px rgba(17, 24, 39, 0.2);
  }

  .login_container.login_page--manager .auth_btn:active {
    transform: translateY(1px);
  }
}

body.auth:has(.login_page) .app_top_fab {
  display: none;
}
