/* Fridge24 V2 — Approved Authentication Design */

:root {
  --purple: #54319b;
  --pink: #e83e8c;
  --text: #302b3b;
  --muted: #777184;
  --border: #ded9e8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 48px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #f8f7fc;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.auth-card {
  width: 100%;
  max-width: 490px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 12px 38px rgba(55, 37, 90, .09);
  overflow: hidden;
}

.auth-brand {
  text-align: center;
  padding: 30px 24px 20px;
  border-bottom: 1px solid #f0edf5;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--purple);
  font-size: 31px;
  font-weight: 800;
}

.auth-logo b {
  color: var(--pink);
}

.auth-logo-icon {
  color: var(--pink);
  font-size: 38px;
}

.auth-brand p {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 0;
}

.auth-content {
  padding: 28px 38px 35px;
}

h1 {
  margin: 0;
  text-align: center;
  color: var(--purple);
  font-size: 25px;
}

.auth-intro {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  margin: 13px 0 26px;
}

form > label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 17px 0 8px;
}

form > label em {
  color: var(--pink);
  font-style: normal;
}

form > input,
.password-field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: white;
  font-size: 14px;
}

input:focus {
  outline: 2px solid #bba8e7;
  outline-offset: 1px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 65px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 8px;
  border: 0;
  background: transparent;
  color: var(--purple);
  cursor: pointer;
  padding: 7px;
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 18px 0 24px;
  font-size: 12px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 5px;
}

a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  text-decoration: underline;
}

.auth-primary {
  display: block;
  width: 100%;
  min-height: 47px;
  margin-top: 22px;
  border: 0;
  border-radius: 7px;
  background: var(--purple);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.auth-primary:hover {
  background: #43247f;
}

.auth-primary:disabled {
  opacity: .6;
  cursor: wait;
}

.auth-switch {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid #eeeaf3;
  text-align: center;
  font-size: 13px;
}

.auth-message {
  font-size: 13px;
  line-height: 1.5;
}

.auth-message:not(:empty) {
  margin-top: 15px;
  padding: 12px;
  background: #f3effa;
  border-radius: 6px;
}

.account-types {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.account-types legend {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.account-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.account-choice:has(input:checked) {
  border-color: var(--purple);
  background: #f8f5ff;
}

.account-choice input {
  accent-color: var(--purple);
}

.account-choice span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.account-choice strong {
  font-size: 13px;
}

.account-choice small {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 520px) {
  body {
    padding: 18px 12px;
  }

  .auth-content {
    padding: 25px 22px;
  }

  h1 {
    font-size: 22px;
  }

  .auth-options {
    flex-wrap: wrap;
  }
}

/* Approved Fridge24 authentication design corrections */

:root {
  --purple: #350b52;
  --pink: #f50067;
}

body {
  background: #f8f7fd;
  padding: 24px 16px;
}

.auth-card {
  max-width: 720px;
  border: 1px solid #d4cde5;
  border-radius: 28px;
  box-shadow: 0 7px 20px rgba(42, 19, 73, .13);
}

.auth-brand {
  padding: 22px 28px 0;
  border-bottom: 0;
}

.auth-logo {
  gap: 15px;
}

.auth-logo-image {
  width: 49px;
  height: 69px;
}

.auth-wordmark {
  font-size: 49px;
  font-weight: 800;
  letter-spacing: -2px;
  color: #350b52;
}

.auth-wordmark span {
  color: #f50067;
}

.auth-brand p {
  margin-top: 6px;
  font-size: 17px;
  color: #160d25;
}

.auth-content {
  padding: 65px 60px 30px;
}

h1 {
  font-size: 38px;
  color: #350b52;
}

.auth-intro {
  margin: 18px auto 45px;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.45;
  color: #241139;
}

form > label {
  font-size: 17px;
  margin: 20px 0 8px;
}

form > input,
.password-field input {
  height: 49px;
  border-radius: 11px;
  font-size: 16px;
}

.auth-options {
  margin: 26px 0 34px;
  font-size: 16px;
}

.auth-primary {
  min-height: 58px;
  margin-top: 30px;
  border-radius: 13px;
  background: #65117b;
  font-size: 22px;
}

.auth-switch {
  margin-top: 28px;
  padding: 16px;
  border: 0;
  border-radius: 13px;
  background: #f2e6fc;
  font-size: 18px;
}

.account-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.account-types legend {
  margin-bottom: 13px;
  font-size: 17px;
}

.account-choice {
  min-height: 110px;
  padding: 16px 12px;
  border-radius: 16px;
  align-items: flex-start;
}

.account-choice strong {
  font-size: 17px;
}

.account-choice small {
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 650px) {
  .auth-card {
    border-radius: 22px;
  }

  .auth-content {
    padding: 38px 24px 24px;
  }

  .auth-wordmark {
    font-size: 35px;
  }

  .auth-logo-image {
    width: 38px;
    height: 54px;
  }

  .auth-brand p {
    font-size: 12px;
  }

  h1 {
    font-size: 27px;
  }

  .auth-intro {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .account-types {
    gap: 9px;
  }

  .account-choice {
    padding: 12px 8px;
    gap: 7px;
  }

  .account-choice strong {
    font-size: 15px;
  }

  .account-choice small {
    font-size: 12px;
  }

  .auth-switch {
    font-size: 15px;
  }
}

/* Fridge24 compact approved layout */

body {
  padding: 14px 12px;
}

.auth-card {
  max-width: 560px;
  border-radius: 24px;
}

.auth-brand {
  padding: 12px 20px 0;
}

.auth-logo {
  gap: 10px;
}

.auth-logo-image {
  width: 35px;
  height: 49px;
}

.auth-wordmark {
  font-size: 36px;
  letter-spacing: -1px;
}

.auth-brand p {
  margin-top: 3px;
  font-size: 13px;
}

.auth-content {
  padding: 27px 36px 22px;
}

h1 {
  font-size: 29px;
}

.auth-intro {
  margin: 12px auto 22px;
  font-size: 15px;
  line-height: 1.4;
}

form > label {
  margin: 12px 0 5px;
  font-size: 14px;
}

form > input,
.password-field input {
  height: 41px;
  font-size: 14px;
  border-radius: 9px;
}

.auth-options {
  margin: 16px 0 19px;
  font-size: 13px;
}

.auth-primary {
  min-height: 45px;
  margin-top: 20px;
  border-radius: 10px;
  font-size: 17px;
}

.auth-switch {
  margin-top: 17px;
  padding: 12px;
  font-size: 14px;
}

.account-types {
  gap: 10px;
  margin-top: 13px;
}

.account-types legend {
  margin-bottom: 8px;
  font-size: 14px;
}

.account-choice {
  min-height: 85px;
  padding: 11px 9px;
  gap: 8px;
  border-radius: 11px;
}

.account-choice strong {
  font-size: 14px;
}

.account-choice small {
  font-size: 11px;
}

.auth-field-icon {
  display: inline-block;
  width: 23px;
  color: #350b52;
  font-size: 18px;
  vertical-align: middle;
}

@media (max-width: 650px) {
  .auth-content {
    padding: 25px 20px;
  }

  .auth-card {
    max-width: 100%;
  }

  h1 {
    font-size: 25px;
  }

  .auth-wordmark {
    font-size: 32px;
  }

  .auth-brand p {
    font-size: 11px;
  }
}

/* Fridge24 final width and icon correction */

.auth-card {
  max-width: 460px;
}

.auth-content {
  padding: 22px 28px 20px;
}

.auth-intro {
  margin-bottom: 18px;
}

.auth-brand {
  padding-top: 12px;
}

.auth-field-icon {
  display: inline-flex;
  width: 24px;
  height: 21px;
  align-items: center;
  vertical-align: middle;
  margin-right: 7px;
  color: #350b52;
}

.auth-field-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-types legend .auth-field-icon {
  vertical-align: middle;
}

.password-field .toggle-password {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 40px;
  top: 0;
  right: 4px;
  font-size: 0;
}

.toggle-password svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #555;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 520px) {
  .auth-card {
    max-width: 100%;
  }

  .auth-content {
    padding: 22px 20px;
  }
}

/* Fridge24 Login — centered in the visible browser area */
body:has(#fridge24-login-form) {
  min-height: 100vh;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body:has(#fridge24-login-form) > .auth-card {
  margin: auto;
}
