body.auth-page .login-wrap .login-content {
  max-width: 480px !important;
  width: 100% !important;
}

.alert-message {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.alert-message .alert-icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
}

.alert-message--error {
  background: #fdecea;
  border: 1px solid #f3b4ab;
  color: #7a2b20;
}

.alert-message--locked {
  background: #fdecea;
  border: 1px solid #f3b4ab;
  color: #7a2b20;
}

.alert-message--warning {
  background: #fff8e6;
  border: 1px solid #f0d894;
  color: #7a5c00;
}

.alert-message--success {
  background: #eaf7ec;
  border: 1px solid #a9dcb2;
  color: #1e5f2a;
}

.attempts-meter {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.attempts-meter span {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #f0d894;
}

.attempts-meter span.used {
  background: #d97706;
}

.login-form.is-locked .au-input,
.login-form.is-locked .au-btn {
  opacity: 0.6;
  pointer-events: none;
}

.field-error {
  display: none;
  margin-top: 5px;
  color: #dc3545;
  font-size: 0.85rem;
  line-height: 1.3;
}

.field-error.show {
  display: block;
}

.au-input.input-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.15);
}

.alert-message {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.alert-message .alert-icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
}

.alert-text {
  flex: 1;
}

.alert-close {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.65;
  color: inherit;
  transition: opacity 0.15s ease;
}

.alert-close:hover {
  opacity: 1;
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.auth-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}

body.app.auth-page .auth-logo .auth-subtitle {
  margin: 0 0 2px;
}

body.app.auth-page .auth-logo .auth-title {
  margin: 0;
}

/* Compact vertical rhythm so the whole card fits a 14" laptop screen without scrolling */
.auth-main {
  margin-top: 0;
  padding: 16px 20px;
}

body.app.auth-page .login-content {
  padding: 24px 28px;
}

.auth-logo {
  margin-bottom: 4px;
}

body.app.auth-page .login-content>.auth-subtitle {
  margin: 0 0 14px;
}

body.app.auth-page .login-form .form-group {
  margin-bottom: 12px;
}

body.app.auth-page .login-checkbox {
  margin: 10px 0 16px;
  justify-content: flex-end;
}

body.app.auth-page .register-link {
  margin: 16px 0 0;
  padding-top: 16px;
}

/* Submit button loading state */
body.app.auth-page .login-form .au-btn[disabled] {
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  vertical-align: -0.15rem;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}
