.diva-page-auth #page-content.diva-auth-page,
.diva-auth-page[class*='awa-auth-theme--'] {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0 4.5rem;
  margin-bottom: 1.5rem;
  background: var(--awa-auth-page-bg, #f5f5f5) !important;
}

.diva-auth-container {
  max-width: 100%;
}

.diva-auth-panel {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  padding: 2rem 1.75rem 1.75rem;
}

.diva-auth-panel__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  text-align: left;
}

.diva-auth-panel__lede {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #777;
  text-align: left;
}

.diva-auth-panel__form {
  margin: 0;
}

.diva-auth-panel__field {
  margin-bottom: 1rem;
}

.diva-auth-panel__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #666;
}

.diva-auth-panel__input {
  display: block;
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 16px;
  line-height: 1.4;
  color: #111;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-text-fill-color: #111;
  caret-color: #111;
}

.diva-auth-panel__input:-webkit-autofill,
.diva-auth-panel__input:-webkit-autofill:hover,
.diva-auth-panel__input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111 !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
}

.diva-auth-panel__input:focus {
  outline: none;
  border-color: #bbb;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.diva-auth-panel__input.is-invalid {
  border-color: #c62828;
}

.diva-auth-panel__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0;
  flex-wrap: wrap;
}

.diva-auth-remember {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-left: 0.1rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.diva-auth-remember__input {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.diva-auth-remember__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border: 1.5px solid #bdbdbd;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.diva-auth-remember__text {
  font-size: 0.8125rem;
  color: #444;
  line-height: 1.3;
}

.diva-auth-remember__input:checked + .diva-auth-remember__box {
  background: var(--awa-auth-accent, #111);
  border-color: var(--awa-auth-accent, #111);
}

.diva-auth-remember__input:checked + .diva-auth-remember__box::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  margin-bottom: 2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.diva-auth-remember__input:focus-visible + .diva-auth-remember__box {
  outline: 2px solid var(--awa-auth-focus, #111);
  outline-offset: 2px;
}

.diva-auth-panel__link-muted {
  font-size: 0.8125rem;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
}

.diva-auth-panel__link-muted:hover {
  color: var(--awa-auth-accent, #111);
  text-decoration: underline;
}

.diva-auth-panel__submit {
  display: block;
  width: 100%;
  margin-top: 1.35rem;
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--awa-auth-accent, #111);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.diva-auth-panel__submit:hover {
  background: var(--awa-auth-accent-hover, #333);
  color: #fff;
}

.diva-auth-panel__submit:focus-visible {
  outline: 2px solid var(--awa-auth-focus, #111);
  outline-offset: 2px;
}

.diva-auth-panel__footer {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.875rem;
  color: #666;
}

.diva-auth-panel__footer a {
  color: var(--awa-auth-accent, #111);
  font-weight: 600;
  text-decoration: none;
}

.diva-auth-panel__footer a:hover {
  text-decoration: underline;
}

.diva-auth-panel .alert {
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.diva-auth-google-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.5rem;
}

.diva-auth-google-btn {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.diva-auth-google-btn .g_id_signin,
.diva-auth-google-btn iframe,
.awa-google-identity .g_id_signin,
.awa-google-identity iframe {
  width: 100% !important;
  max-width: 400px;
}

.diva-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: #888;
}

.diva-auth-divider::before,
.diva-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.diva-auth-divider span {
  white-space: nowrap;
}

.awa-auth-theme--clothes,
.awa-auth-theme--diva {
  --awa-auth-page-bg: #f5f5f5;
  --awa-auth-accent: #111111;
  --awa-auth-accent-hover: #333333;
  --awa-auth-focus: #111111;
}

.awa-auth-theme--default {
  --awa-auth-page-bg: #eef2f7;
  --awa-auth-accent: #00234d;
  --awa-auth-accent-hover: #001a38;
  --awa-auth-focus: #00234d;
}

.awa-auth-theme--uomo {
  --awa-auth-page-bg: #f3f3f3;
  --awa-auth-accent: #111111;
  --awa-auth-accent-hover: #333333;
  --awa-auth-focus: #111111;
}

.awa-auth-theme--uomo-furniture,
.awa-auth-theme--furni {
  --awa-auth-page-bg: #f5f1eb;
  --awa-auth-accent: #383735;
  --awa-auth-accent-hover: #222222;
  --awa-auth-focus: #383735;
}

.awa-auth-theme--shofy {
  --awa-auth-page-bg: #f6f7fb;
  --awa-auth-accent: #821f40;
  --awa-auth-accent-hover: #5c1630;
  --awa-auth-focus: #821f40;
}

.awa-auth-theme--durotan,
.awa-auth-theme--durotan-wear {
  --awa-auth-page-bg: #f4f1ea;
  --awa-auth-accent: #928656;
  --awa-auth-accent-hover: #756b43;
  --awa-auth-focus: #928656;
}

.awa-auth-theme--deep {
  --awa-auth-page-bg: #eceff4;
  --awa-auth-accent: #334155;
  --awa-auth-accent-hover: #0f172a;
  --awa-auth-focus: #334155;
}

.awa-auth-theme--made {
  --awa-auth-page-bg: #f3f4f6;
  --awa-auth-accent: #111827;
  --awa-auth-accent-hover: #030712;
  --awa-auth-focus: #111827;
}
