body {
  background-color: #f7f9fc!important;
  padding: 40px;
  font-family: system-ui;
}

.app-card {
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.09);
  background-color: #fff;
  border: 1px solid #eaedf2;
  padding: 40px;
  border-radius: .3125rem;
  max-width: 750px;
  margin: 0 auto;
}

.app-logo {
  display: block;
  margin-bottom: 14px;
}

.app-description {
  font-size: 15px;
  margin: 0 0 30px 0;
}

.app-description__text {
  font-size: 15px;
}

.ui.form,
.ui.form .field,
input,
.app-button {
  font-family: inherit;
}

.app-button {
  padding: 0px 12px;
  background-color: #0072EC;
  border-color: #0072EC;
  border-radius: 4px;
  border: 1px solid;
  font-size: 12px;
  font-weight: 600;
  line-height: 32px;
  text-transform: uppercase;
  cursor: pointer;
  color: #FFF;
}

.app-button.app-submit-button {
  background-color: #0072EC;
  border-color: #0072EC;
}

.app-button.app-success-button {
  background-color: #19ad79;
  border-color: #19ad79;
}

.app-button.app-submit-button:hover {
  background-color: #0f8ff9;
  border-color: #0f8ff9;
}

.app-button.app-success-button:hover {
  background-color: #26bf93;
  border-color: #26bf93;
}

.app-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form styles (replacement for Semantic UI Form) */
.ui.form {
  position: relative;
}

.ui.form .field {
  margin-bottom: 1em;
}

.ui.form .field label {
  display: block;
  margin-bottom: 0.28571429rem;
  color: rgba(0, 0, 0, 0.87);
  font-size: 0.92857143em;
  font-weight: 700;
  text-transform: none;
}

.ui.form input[type="text"] {
  width: 100%;
  padding: 0.67857143em 1em;
  font-size: 1em;
  background: #fff;
  border: 1px solid rgba(34, 36, 38, 0.15);
  color: rgba(0, 0, 0, 0.87);
  border-radius: 0.28571429rem;
  box-sizing: border-box;
  transition: border-color 0.1s ease;
}

.ui.form input[type="text"]:focus {
  border-color: #85b7d9;
  background: #fff;
  outline: 0;
}

.ui.form .field.error input[type="text"] {
  background: #fff6f6;
  border-color: #e0b4b4;
  color: #9f3a38;
}

/* Loading state */
.ui.form.loading {
  position: relative;
  pointer-events: none;
}

.ui.form.loading::before {
  content: '';
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
}

.ui.form.loading::after {
  content: '';
  position: absolute;
  z-index: 101;
  top: 50%;
  left: 50%;
  margin: -1.5em 0 0 -1.5em;
  width: 3em;
  height: 3em;
  border-radius: 500rem;
  border: 0.2em solid rgba(0, 0, 0, 0.1);
  border-top-color: #767676;
  animation: loader 0.6s linear infinite;
}

@keyframes loader {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Message styles (replacement for Semantic UI Message) */
.message {
  position: relative;
  min-height: 1em;
  margin: 1em 0;
  background: #f8f8f9;
  padding: 1em 1.5em;
  line-height: 1.4285em;
  color: rgba(0, 0, 0, 0.87);
  border-radius: 0.28571429rem;
  border: 1px solid rgba(34, 36, 38, 0.15);
}

.message.positive {
  background-color: #fcfff5;
  color: #2c662d;
  border-color: #a3c293;
}

.message.negative {
  background-color: #fff6f6;
  color: #9f3a38;
  border-color: #e0b4b4;
}

/* Error label (replacement for Semantic UI pointing label) */
.ui.pointing.red.basic.label {
  display: block;
  margin-top: 0.5em;
  color: #db2828;
  font-size: 0.92857143em;
  font-weight: 700;
}
