/* AmiSend authentication: one calm task in one viewport. */
.ami-auth {
  min-width: 320px;
  height: 100dvh;
  overflow: hidden;
  background: #f6fbfa;
  color: #17212b;
  font-family: Manrope, system-ui, sans-serif;
}

.ami-auth .auth-page {
  display: grid;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(0, 204, 255, .14), transparent 34%),
    radial-gradient(circle at 92% 90%, rgba(255, 191, 125, .13), transparent 31%),
    #f6fbfa;
}

.ami-auth .auth-panel {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
  background: transparent !important;
}

.ami-auth .auth-card {
  width: min(416px, 100%);
  border: 0 !important;
  border-radius: 18px;
  background: rgba(255, 255, 253, .96);
  padding: clamp(24px, 4vh, 34px);
  box-shadow: 0 22px 65px rgba(35, 51, 48, .08);
  backdrop-filter: blur(16px);
}

.ami-auth .auth-panel-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  color: #17212b;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.045em;
  text-decoration: none;
}

.ami-auth .auth-panel-brand .brand-logo {
  width: 31px;
  height: 31px;
}

.ami-auth .auth-card-heading {
  margin: 25px 0 22px;
}

.ami-auth .auth-card-heading h1,
.ami-auth .auth-card-heading h2 {
  margin: 0;
  color: #17212b;
  font-size: 28px;
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.ami-auth .auth-card-heading p {
  margin: 8px 0 0;
  color: #66727a;
  font-size: 14px;
  line-height: 1.5;
}

.ami-auth .auth-card-heading strong {
  color: #34424a;
  font-weight: 700;
}

.ami-auth .auth-form {
  display: grid;
  gap: 14px;
  margin: 0;
}

.ami-auth .auth-form label {
  display: grid;
  gap: 7px;
  margin: 0;
}

.ami-auth .field-label,
.ami-auth .auth-form label > span:first-child {
  color: #47545b;
  font-size: 13px;
  font-weight: 700;
}

.ami-auth .field-label a {
  float: right;
  color: #007d9b;
  font-weight: 700;
  text-decoration: none;
}

.ami-auth .field-control,
.ami-auth .ui-field {
  width: 100%;
  min-height: 48px;
  border: 0 !important;
  border-radius: 10px;
  background: #f1f5f4 !important;
  padding: 0 14px;
  color: #17212b;
  font: 500 15px Manrope, system-ui, sans-serif;
  box-shadow: inset 0 0 0 1px transparent !important;
}

.ami-auth .field-control::placeholder,
.ami-auth .ui-field::placeholder {
  color: #94a09f;
}

.ami-auth .field-control:focus,
.ami-auth .ui-field:focus {
  outline: 3px solid rgba(0, 204, 255, .16) !important;
  background: #fff !important;
  box-shadow: inset 0 0 0 1px #00b8e6 !important;
}

.ami-auth .auth-password-control {
  position: relative;
  display: block;
}

.ami-auth .auth-password-control .field-control {
  padding-right: 68px;
}

.ami-auth .auth-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: #ddf8ff;
  padding: 0 10px;
  color: #007995;
  font: 700 12px Manrope, system-ui, sans-serif;
  cursor: pointer;
}

.ami-auth .auth-password-help {
  margin: 0;
  color: #7b878c;
  font-size: 12px;
  line-height: 1.45;
}

.ami-auth .auth-form .ami-btn,
.ami-auth .auth-form .ui-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  background: #00ccff;
  color: #07313b;
  font: 750 14px Manrope, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.ami-auth .auth-form .ami-btn:hover,
.ami-auth .auth-form .ui-button:hover {
  background: #00b8e6;
}

.ami-auth .auth-foot {
  margin: 17px 0 0;
  color: #738087;
  font-size: 13px;
  text-align: center;
}

.ami-auth .auth-foot a,
.ami-auth .field-label a {
  color: #007d9b;
}

.ami-auth .auth-local-link {
  margin: 12px 0 0;
  text-align: center;
}

.ami-auth .auth-local-link button {
  border: 0;
  background: transparent;
  color: #68757a;
  font: 650 12px Manrope, system-ui, sans-serif;
  cursor: pointer;
}

.ami-auth .auth-status-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  border: 0;
  border-radius: 11px;
  background: #e2f9ff;
  padding: 14px;
}

.ami-auth .auth-status-card > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .82);
  color: #007d9b;
}

.ami-auth .auth-status-card b {
  display: block;
  color: #27373d;
  font-size: 13px;
}

.ami-auth .auth-status-card p {
  margin: 4px 0 0;
  color: #64747a;
  font-size: 12px;
  line-height: 1.45;
}

.ami-auth .auth-secondary-action {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  border: 0;
  border-radius: 10px;
  background: #eef2f0;
  color: #536169;
  font: 700 13px Manrope, system-ui, sans-serif;
  text-decoration: none;
}

.ami-auth .auth-dev-preview {
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  background: #eef8f1;
  padding: 10px 12px;
  color: #2d7650;
  font-size: 12px;
}

.ami-auth .auth-dev-preview b,
.ami-auth .auth-dev-preview a {
  display: block;
}

.ami-auth .auth-dev-preview a {
  margin-top: 4px;
  color: #176841;
  font-weight: 700;
}

.ami-auth .app-flash {
  margin: 0 0 14px;
  border: 0;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 13px;
}

.ami-auth .app-flash.success {
  background: #e8f8ed;
  color: #286b48;
}

.ami-auth .app-flash.error {
  background: #fff0ed;
  color: #a0433c;
}

.ami-auth-admin .auth-card {
  width: min(400px, 100%);
}

@media (max-width: 520px) {
  .ami-auth .auth-panel {
    padding: 14px;
  }

  .ami-auth .auth-card {
    border-radius: 15px;
    padding: 24px 20px;
  }

  .ami-auth .auth-card-heading h1,
  .ami-auth .auth-card-heading h2 {
    font-size: 26px;
  }
}

@media (max-height: 690px) {
  .ami-auth .auth-card {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .ami-auth .auth-card-heading {
    margin: 18px 0 15px;
  }

  .ami-auth .auth-form {
    gap: 10px;
  }

  .ami-auth .field-control,
  .ami-auth .ui-field,
  .ami-auth .auth-form .ami-btn,
  .ami-auth .auth-form .ui-button {
    min-height: 43px;
  }

  .ami-auth .auth-toggle {
    top: 5px;
  }

  .ami-auth .auth-foot {
    margin-top: 12px;
  }
}
