/* Cubewire Wallet login theme. Kept in sync with Identity's console/public/auth/theme.css. */
.cw-auth {
  color-scheme: light;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  background: #fff;
  color: #111827;
  font:
    16px/1.5 Barlow,
    Arial,
    sans-serif;
}
.cw-auth *,
.cw-auth *::before,
.cw-auth *::after {
  box-sizing: border-box;
  box-shadow: none !important;
}
.cw-auth-brand {
  display: flex;
  width: 50%;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
}
.cw-auth-brand img {
  width: 300px;
  max-width: calc(100% - 64px);
  height: auto;
}
.cw-auth-panel {
  display: flex;
  width: 50%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}
.cw-auth-content {
  width: 100%;
  max-width: 448px;
  overflow-wrap: anywhere;
}
.cw-auth-mobile-brand {
  display: none;
}
.cw-auth-heading {
  margin-bottom: 32px;
}
.cw-auth .cw-auth-product {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}
.cw-auth h1 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}
.cw-auth h2,
.cw-auth h3 {
  margin: 16px 0;
  color: #111827;
  font-size: 18px;
  font-weight: 600;
}
.cw-auth p,
.cw-auth small {
  color: #4b5563;
  font-size: 14px;
  line-height: 20px;
}
.cw-auth-heading p:last-child {
  margin: 8px 0 0;
}
.cw-auth form {
  display: grid;
  gap: 16px;
}
.cw-auth label {
  display: grid;
  gap: 4px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.cw-auth input:not([type="hidden"]) {
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font:
    400 14px/20px Barlow,
    Arial,
    sans-serif;
}
.cw-auth input::placeholder {
  color: #737373;
}
.cw-auth button,
.cw-auth [data-slot="button"],
.cw-auth .cw-auth-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font:
    500 14px/20px Barlow,
    Arial,
    sans-serif;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
}
.cw-auth button:hover,
.cw-auth [data-slot="button"]:hover,
.cw-auth .cw-auth-button:hover {
  background: #f9fafb;
}
.cw-auth button[type="submit"],
.cw-auth button[data-variant="default"],
.cw-auth [data-slot="button"][data-variant="default"],
.cw-auth .cw-auth-button-primary,
.cw-auth .handoff-actions > button:first-child {
  width: 100%;
  min-height: 44px;
  border-color: transparent;
  background: #3fd48a;
  color: #0a0a0a;
}
.cw-auth button[type="submit"]:hover,
.cw-auth button[data-variant="default"]:hover,
.cw-auth [data-slot="button"][data-variant="default"]:hover,
.cw-auth .cw-auth-button-primary:hover,
.cw-auth .handoff-actions > button:first-child:hover {
  background: #2fb870;
}
.cw-auth button:disabled {
  cursor: wait;
  opacity: 0.5;
}
.cw-auth a,
.cw-auth button.cw-auth-link {
  color: #1d955a;
  font-size: 14px;
  text-decoration: none;
}
.cw-auth a:hover,
.cw-auth button.cw-auth-link:hover {
  text-decoration: underline;
}
.cw-auth .cw-auth-button-primary {
  color: #0a0a0a;
}
.cw-auth .cw-auth-button:hover,
.cw-auth [data-slot="button"]:hover {
  text-decoration: none;
}
.cw-auth button.cw-auth-link {
  width: auto;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 400;
}
.cw-auth :focus-visible {
  outline: 2px solid #1d955a !important;
  outline-offset: 3px;
}
.cw-auth-forgot {
  display: flex;
  justify-content: flex-end;
}
.cw-auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.cw-auth-actions,
.cw-auth .handoff-actions {
  display: grid;
  gap: 16px;
}
.cw-auth [role="alert"] {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
}
.cw-auth [role="status"] {
  margin: 0 0 16px;
}
.cw-auth .preview-access {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}
.cw-auth .preview-access summary {
  color: #4b5563;
  font-size: 14px;
  cursor: pointer;
}
.cw-auth .preview-access p {
  margin: 16px 0;
}
.cw-auth-note {
  display: block;
  margin-top: 24px;
}
@media (max-width: 767px) {
  .cw-auth-brand {
    display: none;
  }
  .cw-auth-panel {
    width: 100%;
  }
  .cw-auth-mobile-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
  }
  .cw-auth-mobile-brand img {
    width: 400px;
    max-width: 100%;
    height: auto;
  }
  .cw-auth-heading {
    text-align: center;
  }
}
