/**
 * @file
 * OpenID Connect client buttons (login + register).
 */

.openid-connect-auth-top {
  margin-bottom: 8px;
}

.openid-connect-buttons-form {
  margin: 0;
}

.openid-connect-auth-top {
  margin-top: 2rem;
}

.openid-connect-button-wrap + .openid-connect-button-wrap {
  margin-top: 12px;
}

.openid-connect-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: #6c757d;
  font-size: 14px;
  line-height: 1.4;
}

.openid-connect-divider::before,
.openid-connect-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #e9ecef;
}

.openid-connect-divider span {
  white-space: nowrap;
}

.openid-connect-button,
input.openid-connect-button[type="submit"],
button.openid-connect-button {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px 12px 52px;
  border: 1px solid #d0d3d9;
  border-radius: 6px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 22px 22px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.18), 0 2px 6px rgba(60, 64, 67, 0.1);
  color: #1f2328;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.openid-connect-button--google,
input.openid-connect-button--google[type="submit"] {
  background-image: url("../images/google-g.svg");
}

.openid-connect-button:hover,
input.openid-connect-button[type="submit"]:hover,
button.openid-connect-button:hover {
  background-color: #fff;
  border-color: #b9bdc6;
  box-shadow: 0 2px 4px rgba(60, 64, 67, 0.2), 0 4px 12px rgba(60, 64, 67, 0.14);
  color: #1f2328;
  transform: translateY(-1px);
}

.openid-connect-button:focus,
input.openid-connect-button[type="submit"]:focus,
button.openid-connect-button:focus {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}

.openid-connect-button:active,
input.openid-connect-button[type="submit"]:active,
button.openid-connect-button:active {
  background-color: #f1f3f4;
  border-color: #c6c8cb;
  box-shadow: inset 0 1px 2px rgba(60, 64, 67, 0.16);
  transform: translateY(0);
}

@media (max-width: 575px) {
  .openid-connect-button,
  input.openid-connect-button[type="submit"],
  button.openid-connect-button {
    max-width: none;
  }
}
