/* Scoped to Dify's sign-in shell. Authentication and API behavior remain unchanged. */
body:has([class*="bg-background-default-burn"]) {
  background: #f4f7f5 !important;
}

body:has([class*="bg-background-default-burn"]) [class*="bg-background-default-burn"] {
  min-height: 100vh;
  padding: 24px;
  background: #f4f7f5 !important;
}

body:has([class*="bg-background-default-burn"]) [class*="bg-background-default-subtle"] {
  min-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid #dce7e0 !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 24px 70px rgba(20, 48, 35, 0.09);
}

body:has([class*="bg-background-default-burn"]) [class*="bg-background-default-subtle"] > [class*="items-center"][class*="justify-between"] {
  position: relative;
  min-height: 84px;
  border-bottom: 1px solid #edf2ee;
  padding: 20px 24px;
}

body:has([class*="bg-background-default-burn"]) [class*="bg-background-default-subtle"] > [class*="items-center"][class*="justify-between"]::before {
  display: block;
  width: 118px;
  height: 42px;
  content: "";
  background: url("/doggys-login.png") left center / contain no-repeat;
}

body:has([class*="bg-background-default-burn"]) [class*="bg-background-default-subtle"] > [class*="items-center"][class*="justify-between"] > :first-child {
  position: absolute;
  left: 158px;
}

body:has([class*="bg-background-default-burn"]) [class*="md:w-\[400px\]"] {
  width: 100%;
  max-width: 400px;
  padding: 34px 32px 28px;
  color: #17231c;
}

body:has([class*="bg-background-default-burn"]) [class*="md:w-\[400px\]"] input {
  border-radius: 12px;
  border-color: #d7e3db;
  background: #fbfdfb;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

body:has([class*="bg-background-default-burn"]) [class*="md:w-\[400px\]"] input:focus {
  border-color: #26966a;
  box-shadow: 0 0 0 3px rgba(38, 150, 106, 0.14);
}

body:has([class*="bg-background-default-burn"]) [class*="md:w-\[400px\]"] button {
  border-radius: 12px;
}

body:has([class*="bg-background-default-burn"]) [class*="md:w-\[400px\]"] a {
  color: #19734f;
}

html[data-theme="dark"] body:has([class*="bg-background-default-burn"]) {
  background: #0d1510 !important;
}

html[data-theme="dark"] body:has([class*="bg-background-default-burn"]) [class*="bg-background-default-burn"] {
  background: #0d1510 !important;
}

html[data-theme="dark"] body:has([class*="bg-background-default-burn"]) [class*="bg-background-default-subtle"] {
  border-color: #293a30 !important;
  background: #151e18 !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] body:has([class*="bg-background-default-burn"]) [class*="items-center"][class*="justify-between"] {
  border-bottom-color: #26362c;
}

html[data-theme="dark"] body:has([class*="bg-background-default-burn"]) [class*="md:w-\[400px\]"] {
  color: #edf5ef;
}

html[data-theme="dark"] body:has([class*="bg-background-default-burn"]) [class*="md:w-\[400px\]"] input {
  border-color: #385143;
  background: #101811;
}

html[data-theme="dark"] body:has([class*="bg-background-default-burn"]) [class*="md:w-\[400px\]"] a {
  color: #73d7a5;
}

@media (max-width: 640px) {
  body:has([class*="bg-background-default-burn"]) [class*="bg-background-default-burn"] {
    padding: 0;
  }

  body:has([class*="bg-background-default-burn"]) [class*="bg-background-default-subtle"] {
    min-height: 100vh;
    border: 0 !important;
    border-radius: 0 !important;
  }

  body:has([class*="bg-background-default-burn"]) [class*="bg-background-default-subtle"] > [class*="items-center"][class*="justify-between"] {
    min-height: 72px;
    padding: 16px;
  }

  body:has([class*="bg-background-default-burn"]) [class*="bg-background-default-subtle"] > [class*="items-center"][class*="justify-between"]::before {
    width: 88px;
    height: 36px;
  }

  body:has([class*="bg-background-default-burn"]) [class*="bg-background-default-subtle"] > [class*="items-center"][class*="justify-between"] > :first-child {
    left: 116px;
  }

  body:has([class*="bg-background-default-burn"]) [class*="md:w-\[400px\]"] {
    padding: 28px 20px 24px;
  }
}
