/*
 * MetaPets login-page presentation.
 *
 * The JavaScript adds .metapets-login-enhanced only after it has found the
 * expected Zammad elements. This keeps the credential form usable if Zammad's
 * markup changes or JavaScript fails to load.
 */

.metapets-login-enhanced .fullscreen-body {
  width: 520px;
  max-width: calc(100vw - 32px);
  margin-right: auto;
  margin-left: auto;
}

.metapets-login-enhanced .hero-unit {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 40px;
  box-sizing: border-box;
}

.metapets-login-enhanced .company-logo {
  order: 1;
  width: 150px;
  max-width: 100%;
  max-height: none;
  margin-right: auto;
  margin-left: auto;
}

.metapets-login-enhanced .auth-providers {
  order: 2;
  width: 100%;
  margin: 40px 0 0;
}

.metapets-login-enhanced .auth-providers form,
.metapets-login-enhanced .metapets-provider-button {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  box-sizing: border-box;
}

.metapets-login-enhanced .metapets-provider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px 20px;
  border-color: rgb(137, 101, 253);
  background: rgb(137, 101, 253);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.metapets-login-enhanced .metapets-provider-button:hover,
.metapets-login-enhanced .metapets-provider-button:focus {
  border-color: rgb(119, 82, 239);
  background: rgb(119, 82, 239);
  color: #fff;
}

.metapets-login-enhanced .metapets-provider-button .provider-icon {
  display: none;
}

.metapets-login-enhanced .separator {
  display: none;
}

.metapets-login-enhanced .metapets-docs-link {
  display: flex;
  align-items: center;
  justify-content: center;
  order: 3;
  width: 100%;
  min-height: 56px;
  margin: 20px 0 0;
  box-sizing: border-box;
  border: 1px solid rgb(137, 101, 253);
  background: rgba(137, 101, 253, 0.14);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.metapets-login-enhanced .metapets-docs-link:hover,
.metapets-login-enhanced .metapets-docs-link:focus {
  border-color: rgb(137, 101, 253);
  background: rgba(137, 101, 253, 0.28);
  color: #fff;
  text-decoration: none;
}

.metapets-login-enhanced .metapets-credentials-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  order: 4;
  width: 100%;
  min-height: 52px;
  margin: 20px 0 0 !important;
  box-sizing: border-box;
  border: 1px solid #686a70;
  background: transparent;
  color: #d8d8da;
  text-align: center;
}

.metapets-login-enhanced .metapets-credentials-toggle:hover,
.metapets-login-enhanced .metapets-credentials-toggle:focus {
  border-color: #97999e;
  background: rgba(255, 255, 255, 0.06);
}

.metapets-login-enhanced #login {
  order: 5;
  width: 100%;
  margin: 24px 0 0;
  box-sizing: border-box;
}
