* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  color: #4a5568;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.login-page {
  display: flex;
  min-height: 100vh;
  justify-content: center;
  padding: 15% 0 24px;
  background: linear-gradient(to bottom, #f0f4f8, #d9e2ec);
}

.login-form {
  width: 300px;
  max-width: 100%;
  padding: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4px;
  animation: login-fade-in 0.5s ease-in-out forwards;
}

.brand-lockup {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  display: block;
  width: 65%;
  height: 60px;
  margin-bottom: 4px;
}

.brand-logo img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.tagline {
  margin: 0;
  color: #718096;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  animation: login-fade-in 0.7s ease-in-out forwards;
}

.error-slot {
  min-height: 40px;
  margin-bottom: 5px;
  color: #e53e3e;
  font-size: 14px;
  line-height: 20px;
}

.form-control {
  margin-bottom: 16px;
}

.form-control label {
  display: block;
  margin-bottom: 8px;
  color: #718096;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.form-control input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  outline: 0;
  color: #4a5568;
  background: #fff;
  font-size: 16px;
}

.form-control input::placeholder {
  color: #a0aec0;
  opacity: 1;
}

.form-control input:hover:not(:disabled) {
  border-color: #cbd5e0;
}

.form-control input:focus:not(:disabled) {
  border-color: #a0aec0;
  box-shadow: 0 0 0 1px #a0aec0;
}

.form-control input[aria-invalid="true"]:not(:disabled) {
  border-color: #c53030;
  box-shadow: 0 0 0 1px #c53030;
}

.form-control input:disabled {
  border-color: #a0aec0;
  color: #718096;
  background: #e2e8f0;
  cursor: not-allowed;
}

.form-control input:autofill,
.form-control input:-webkit-autofill,
.form-control input:-webkit-autofill:focus {
  -webkit-text-fill-color: #2d3748;
  box-shadow: 0 0 0 1000px #f7fafc inset;
  border: 1px solid #e2e8f0;
}

.form-control input:-webkit-autofill:focus-visible {
  box-shadow: 0 0 0 1000px #f7fafc inset, 0 0 0 1px #a0aec0;
}

.form-control input:-moz-autofill {
  box-shadow: 0 0 0 1000px #f7fafc inset;
  border: 1px solid #e2e8f0;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  top: 4px;
  right: 0;
  display: flex;
  width: 40px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #2c7a7b;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

.password-toggle:hover {
  background: #e6fffa;
}

.password-toggle:active {
  background: #b2f5ea;
}

.password-toggle:focus-visible {
  outline: 2px solid #3182ce;
  outline-offset: -2px;
}

.password-toggle svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eye-off,
.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-off {
  display: initial;
}

.password-control {
  margin-bottom: 40px;
}

.login-form form > button {
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #38b2ac;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.login-form form > button:hover {
  background: #319795;
}

.login-form form > button:active {
  background: #38b2ac;
}

.login-form form > button:focus-visible {
  outline: 2px solid #285e61;
  outline-offset: 2px;
}

@keyframes login-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
