/* 
 * Space Grotesk font is loaded via Google Fonts in standard_headers.hbs
 * Font classes are defined in fonts.css
 */

body {
  margin: auto;
  min-height: 100vh;
  min-width: 100%;
  background: #0c0c0c;
  display: flex;
  flex-direction: column;
}

/* the browser adds margins to these elements by default */
ul,
ol,
p,
h1,
h2,
h3 {
  margin-top: 0;
  margin-bottom: 0;
}

/* main contains all of our page elements - excluding the footer */
main {
  /* fill the page */
  flex: 1;
}

.divider {
  width: 4rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.spacing-32 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.spacing-32-horizontal {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.spacing-16 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spacing-16-horizontal {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.spacing-8 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.divider-left {
  margin: 0;
}

.ory-branding {
  display: none;
  /* display: flex;
  flex-direction: row;
  gap: 0.375rem;
  align-items: center;
  padding-bottom: 2rem; */
}

/* only manage the nav */
.main-nav {
  min-width: 18.75rem;
  position: fixed;
  height: auto;
  z-index: 1;
}

/* footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 2;
} */

/* pushes the menu links to either side of the footer bar */
.footer-container {
  padding: 1rem 1.5rem;
  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75rem;
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ory-theme-foreground-muted);
  background-color: var(--ory-theme-background-surface);
}

.footer-divider {
  height: 0;
  border-top: 1px !important;
}

@media screen and (max-width: 24.375em) {
  .footer-container > div:last-child {
    display: none;
  }
}

@media screen and (max-width: 40em) {
  body {
    background: var(--ory-theme-background-surface);
  }
}

/* Labels */
label {
  color: #cccccc;
}

/* Cards */
[data-testid$="-auth-card"] {
  background-color: #0c0c0c !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 32px !important;
}

[data-testid$="-auth-card"] > div,
[data-testid$="-auth-card"] > div > div {
  background-color: #0c0c0c !important;
  border: none !important;
  border-radius: 0 !important;
}

/* Inputs */
[data-testid^="node/input/"] input {
  background-color: #565656 !important;
  border: none !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  padding: 12px !important;
  width: 100% !important;
  font-size: 14px !important;
  font-family: "Space Grotesk", sans-serif !important;
  height: 40px !important;
  margin: 0px !important;
}

/* Messages and Typography */
[class*="ory_elements__message"],
[class*="ory_elements__typography"] {
  color: #a8a8a8 !important;
}

[class*="ory_elements__button_link"] a {
  color: #ffffff !important;
  transition: filter 0.2s ease-in-out !important;
}

[class*="ory_elements__button_link"] a:hover {
  filter: brightness(50%) !important;
}

/* Password visibility toggle */
[data-checked] svg path {
  fill: #a8a8a8 !important;
}

[data-checked]:hover svg path {
  fill: #ffffff !important;
}

/* Submit Buttons (excluding social buttons) */
button[class*="ory_elements__button"][type="submit"]:not(
    [class*="button_social"]
  ) {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: none !important;
  border-radius: 6px !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 14px !important;
  height: 44px !important;
  transition: background-color 0.2s ease-in-out !important;
}

button[class*="ory_elements__button"][type="submit"]:not(
    [class*="button_social"]
  ):hover {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

/* Required field asterisk */
[class*="ory_elements__input_field"] span,
[class*="ory_elements__input_field__"] {
  color: #a8a8a8 !important;
}

/* Error Messages */
[class*="ory_elements__message"][class*="error"],
[class*="ory_elements__message--error"],
[class*="ory_elements__messages__error"] {
  color: #ff4d4d !important;
  background-color: rgba(255, 77, 77, 0.1) !important;
  border: 1px solid rgba(255, 77, 77, 0.2) !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 14px !important;
}

/* Info Messages (for OAuth cancellation) */
[class*="ory_elements__message"][class*="info"],
[class*="ory_elements__message--info"],
[class*="ory_elements__messages__info"] {
  color: #3b82f6 !important;
  background-color: rgba(59, 130, 246, 0.1) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 14px !important;
}

/* Success Messages */
[class*="ory_elements__message"][class*="success"],
[class*="ory_elements__message--success"],
[class*="ory_elements__messages__success"] {
  color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 14px !important;
}

/* Message Icons */
[class*="ory_elements__message"] svg {
  width: 16px !important;
  height: 16px !important;
  margin-right: 8px !important;
}

/* Error Icon Color */
[class*="ory_elements__message"][class*="error"] svg path,
[class*="ory_elements__message--error"] svg path,
[class*="ory_elements__messages__error"] svg path {
  fill: #ff4d4d !important;
}

/* Info Icon Color */
[class*="ory_elements__message"][class*="info"] svg path,
[class*="ory_elements__message--info"] svg path,
[class*="ory_elements__messages__info"] svg path {
  fill: #ff4d4d !important;
}

/* Success Icon Color */
[class*="ory_elements__message"][class*="success"] svg path,
[class*="ory_elements__message--success"] svg path,
[class*="ory_elements__messages__success"] svg path {
  fill: #10b981 !important;
}

/* Checkboxes */
[data-testid^="node/input/"][data-testid$="traits.terms_accepted"],
[data-testid^="node/input/"][data-testid$="traits.receive_updates"] {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
}

[data-testid^="node/input/"] input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  background-color: #3b3b3b !important;
  border-radius: 4px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  position: relative !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

[data-testid^="node/input/"] input[type="checkbox"]:checked {
  background-color: #c8c8c8 !important;
}

[data-testid^="node/input/"] input[type="checkbox"]:checked::before {
  color: black;
}

[data-testid^="node/input/"] input[type="checkbox"] + label {
  color: #f3f3f3;
  font-family: "Space Grotesk";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20.58px;
  letter-spacing: 0.14px;
  cursor: pointer;
}
