:root {
  --cleanon-auth-bg: #f6f5ee;
  --cleanon-auth-text: #1f1b16;
  --cleanon-auth-primary: #f4b400;
  --cleanon-auth-primary-hover: #dfa200;
  --cleanon-auth-primary-pressed: #c78f00;
  --cleanon-auth-panel: #fff;
  --cleanon-auth-dark: #747b5a;
  --cleanon-auth-muted: #5a524a;

  --cleanon-auth-border: rgba(58, 31, 29, 0.12);
  --cleanon-auth-radius: 24px;
  --cleanon-auth-radius-field: 8px;
}

.cleanon-auth {
  min-height: 100vh;
  background: var(--cleanon-auth-bg);
  color: var(--cleanon-auth-text);
}

.cleanon-auth,
.cleanon-auth * {
  box-sizing: border-box;
}

.cleanon-auth__section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.65fr 0.35fr;
}

/* .cleanon-auth__section--center {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 48px 20px;
  position: relative;
} */

.cleanon-auth__media {
  min-height: 100vh;
  background-color: var(--cleanon-auth-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.cleanon-auth__content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 20px;
  position: relative;
  flex-direction: column;
}

.cleanon-auth__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80%;
}

.cleanon-auth__logo img,
.cleanon-auth__logo .custom-logo {
  min-width: 100%;
  height: auto;
}

.cleanon-auth__logo span {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
}

.cleanon-auth__logo--top {
  position: absolute;
  top: 40px;
  left: 56px;
}

.cleanon-auth__logo--top span {
  color: var(--cleanon-auth-dark);
}

.cleanon-auth__back {
  position: absolute;
  top: 40px;
  left: 56px;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--cleanon-auth-text);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.cleanon-auth__back:hover {
  opacity: 1;
}

.cleanon-auth-form {
  width: 100%;
  max-width: 544px;
}

.cleanon-auth-form--center {
  max-width: 392px;
}

.cleanon-auth-form__title {
  margin: 0 auto 16px auto;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--cleanon-auth-text);
  line-height: 120%;
  text-align: center;
}

.cleanon-auth-form__text {
  margin: 0 0 48px;
  /* max-width: 340px; */
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--cleanon-auth-muted);
  width: 100%;
  text-align: center;
}

.cleanon-auth-form__field {
  display: block;
  margin-bottom: 24px;
}

.cleanon-auth-form__field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--cleanon-auth-text);
}

.cleanon-auth-form__field input {
  width: 100%;
  min-height: 56px;
  padding: 0 24px;

  border: 1px solid var(--Border-beige, rgba(232, 222, 211, 0.8));
  background: var(--Bg-white, #fff);
  border-radius: var(--cleanon-auth-radius-field);

  color: var(--cleanon-auth-text);
  font-size: 1rem;
  outline: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cleanon-auth-form__field input::placeholder {
  color: rgba(59, 43, 40, 0.36);
}

.cleanon-auth-form__field input:focus {
  background: #fff;
  border-color: rgba(245, 164, 0, 0.62);
  box-shadow: 0 0 0 4px rgba(245, 164, 0, 0.13);
}

.cleanon-auth-form__error {
  background: #fff5f5;
  border: 1.5px solid #e8a0a0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #8e2a1f;
  margin-bottom: 4px;
}

.cleanon-auth-form__submit {
  width: 100%;
  min-height: 60px;
  margin-top: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--cleanon-auth-primary);
  color: #2b1a16;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 155%;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cleanon-auth-form__submit:hover {
  background: var(--cleanon-auth-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(245, 164, 0, 0.26);
}

.cleanon-auth-form__submit:active {
  transform: translateY(0);
  box-shadow: none;
}

.cleanon-auth-form__bottom {
  margin: 14px 0 0;
  font-size: 0.875rem;
  line-height: 1.42;
  text-align: center;
  color: var(--cleanon-auth-muted);
  font-weight: 400;
}

.cleanon-auth-form__bottom a {
  color: var(--cleanon-auth-text);
  font-weight: 600;
  text-decoration: none;
}

.cleanon-auth-form__bottom a:hover {
  text-decoration: underline;
}

/* Cleaner screens from your Figma are centered */
.cleanon-auth--cleaner-login,
.cleanon-auth--cleaner-register {
  background: var(--cleanon-auth-bg);
}

/* User screens have dark right/left visual side */
.cleanon-auth--user-login .cleanon-auth__media,
.cleanon-auth--user-register .cleanon-auth__media {
  background: #747b5a;
}
.cleanon-auth-password {
  position: relative;
  display: block;
  width: 100%;
}
.cleanon-auth-password input {
  padding-right: 56px;
}
.cleanon-auth-password__toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5a524a;
  transform: translateY(-50%);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cleanon-auth-password__toggle svg {
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.cleanon-auth-password__toggle:hover {
  opacity: 0.75;
}

.cleanon-auth-checks {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.cleanon-auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  color: #5a524a;
}

.cleanon-auth-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cleanon-auth-check__box {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cleanon-auth-check__box svg {
  display: block;
  width: 20px;
  height: 20px;
}

.cleanon-auth-check__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--cleanon-auth-muted);
  border-bottom: 2px solid var(--cleanon-auth-muted);
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.cleanon-auth-check input:checked + .cleanon-auth-check__box::after {
  transform: rotate(45deg) scale(1);
}

.cleanon-auth-check__text {
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--cleanon-auth-muted);
  font-weight: 400;
  line-height: 20px;
}

.cleanon-auth-check__text a {
  color: var(--cleanon-auth-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cleanon-auth-check:hover .cleanon-auth-check__text a {
  color: #2f211d;
}

.cleanon-auth-check input:focus-visible + .cleanon-auth-check__box {
  outline: 2px solid rgba(242, 169, 0, 0.5);
  outline-offset: 3px;
  border-radius: 4px;
}
.cleanon-auth-form__forgot {
  display: block;
  width: fit-content;
  margin: -4px 0 18px auto;
  font-size: 0.875rem;
  line-height: 1.3;
  font-weight: 500;
  color: #5a524a;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cleanon-auth-form__forgot:hover {
  opacity: 0.72;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cleanon-auth-code {
  display: grid;
  grid-template-columns: repeat(6, 44px);
  justify-content: center;
  gap: 8px;
  margin: 24px 0 20px;
}

.cleanon-auth-code input {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(90, 82, 74, 0.24);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: #2f211d;
  font-size: 1.375rem;
  line-height: 1;
  font-weight: 500;
  text-align: center;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.cleanon-auth-code input:focus {
  background: #fff;
  border-color: #f2a900;
  box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.16);
}
.cleanon-auth-form__notice {
  width: 100%;
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.cleanon-auth-form__notice--error {
  border: 1px solid rgba(198, 61, 47, 0.28);
  background: rgba(198, 61, 47, 0.08);
  color: #9f2f25;
}
.cleanon-auth-form__badge {
  width: fit-content;
  margin: 0 auto 20px;
  padding: 8px 14px;
  border: 1px solid rgba(217, 67, 50, 0.35);
  border-radius: 999px;
  background: rgba(217, 67, 50, 0.08);
  color: #d94332;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
}
/* -----------------------------------------------------------------------------Responsive 1024px--------------------------------------------------*/
@media (max-width: 1024px) {
  .cleanon-auth__media {
    min-height: 220px;
    order: 2;
  }

  .cleanon-auth__content {
    min-height: auto;
    padding: 120px 20px 64px;
  }

  .cleanon-auth__section--center {
    min-height: 100vh;
    padding: 120px 20px 64px;
  }

  .cleanon-auth__logo--top,
  .cleanon-auth__back {
    top: 28px;
    left: 24px;
  }
}
/* -----------------------------------------------------------------------------Responsive 768px--------------------------------------------------*/
@media (max-width: 768px) {
  .cleanon-auth--user-login .cleanon-auth__media,
  .cleanon-auth--user-register .cleanon-auth__media {
    display: none;
  }
  .cleanon-auth__section {
    grid-template-columns: 1fr;
  }
}
/* -----------------------------------------------------------------------------Responsive 425px--------------------------------------------------*/
@media (max-width: 425px) {
  .cleanon-auth__content,
  .cleanon-auth__section--center {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cleanon-auth-form__title {
    font-size: 2rem;
  }

  .cleanon-auth-form__field input {
    min-height: 44px;
  }

  .cleanon-auth__media {
    min-height: 180px;
    padding: 32px 20px;
  }
  .cleanon-auth-code {
    grid-template-columns: repeat(6, 36px);
    gap: 6px;
  }

  .cleanon-auth-code input {
    width: 36px;
    height: 40px;
    font-size: 1.125rem;
  }
}
