* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f3f6f8;
  color: #111827;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.card-box {
  width: 100%;
  max-width: 450px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid #026d66;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}

.card-header {
  padding: 32px;
  text-align: center;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.auth-logo {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.card-body {
  padding: 28px 24px 30px;
}

.card-body h1 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
}

.hint {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
}

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

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
}

.form-control {
  width: 100%;
  height: 38px;
  padding: 7px 11px;
  border: 1px solid #c7d2db;
  border-radius: 5px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  outline: none;
}

.form-control:focus {
  border-color: #0d918b;
  box-shadow: 0 0 0 3px rgba(13, 145, 139, 0.14);
}

.btn-primary {
  width: 100%;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #026d66;
  border-radius: 5px;
  background: #026d66;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.btn-primary:hover:not(:disabled) {
  background: #024f50;
  border-color: #024f50;
}

.btn-primary:disabled {
  cursor: default;
  opacity: 0.65;
}

.auth-alert {
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  line-height: 1.5;
}

.auth-alert-success {
  background: #eaf8ef;
  border-color: #b9e7c7;
  color: #166534;
}

.auth-alert-error {
  background: #fdecef;
  border-color: #f5c2cb;
  color: #991b1b;
}

.back-link-wrap {
  margin-top: 18px;
}

.back-link-wrap a {
  color: #0069d9;
  text-decoration: none;
}

.back-link-wrap a:hover {
  text-decoration: underline;
}

/* Slightly tighter card after a reset link has been sent. */
.card-box.is-success .card-body {
  padding-top: 24px;
  padding-bottom: 24px;
}

.card-box.is-success .auth-alert {
  margin-top: 14px;
}

.card-box.is-success .back-link-wrap {
  margin-top: 14px;
}

.auth-language-switcher {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10000;
}

.auth-language-select {
  min-width: 92px;
  height: 34px;
  padding: 5px 28px 5px 10px;
  border: 1px solid #c7d2db;
  border-radius: 7px;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  body {
    align-items: flex-start;
    padding-top: 68px;
  }

  .card-header {
    padding: 26px 24px;
  }

  .card-body {
    padding: 24px 20px 26px;
  }
}
