.sso-field {
  display: grid;
  margin-bottom: 20px;
}

.sso-complement-wrap {
  display: none;
}

.sso-complement-wrap.is-visible {
  display: grid;
}

.sso-signin-static [data-panel].sso-panel-hidden {
  display: none;
}

.sso-signin-static .sso-btn-nav-hidden {
  display: none !important;
}

.sso-field > label {
  grid-row: 1;
  font-size: 12px;
  line-height: 18px;
  color: rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px 4px 0 0;
  padding: 8px 12px 0;
}

.sso-input,
.sso-select,
.sso-field > .sso-input-wrap {
  grid-row: 2;
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.42);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 12px 8px;
  font-size: 16px;
  font-family: inherit;
}

.sso-field > .sso-input-wrap {
  position: relative;
}

.sso-field > .sso-input-wrap .sso-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0 32px 0 0;
  font-size: 16px;
  font-family: inherit;
}

/* Detect browser autofill so Entrar/Redefinir enable correctly */
@keyframes sso-on-autofill {
  from { opacity: 0.99; }
  to { opacity: 1; }
}

.sso-input:-webkit-autofill {
  animation-name: sso-on-autofill;
  animation-duration: 0.001s;
}

/* Browser native reveal (Edge/Chrome) — keep only .sso-toggle like legacy */
.sso-field > .sso-input-wrap input[type="password"]::-ms-reveal,
.sso-field > .sso-input-wrap input[type="password"]::-ms-clear {
  display: none;
}

.sso-input:focus,
.sso-select:focus,
.sso-field > .sso-input-wrap .sso-input:focus {
  outline: none;
}

.sso-field:focus-within > label,
.sso-field:focus-within > .sso-input,
.sso-field:focus-within > .sso-select,
.sso-field:focus-within > .sso-input-wrap {
  border-bottom-color: #1976d2;
}

.sso-input.is-error,
.sso-select.is-error {
  border-bottom-color: #c10015;
}

.sso-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.54);
  padding: 4px;
}

.sso-error {
  grid-row: 3;
  color: #c10015;
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
}

.sso-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.089em;
  text-decoration: none;
  min-height: 36px;
  line-height: 1;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12);
}

.sso-btn:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.sso-btn-danger {
  background: #c62828;
}

.sso-btn-outline {
  background: transparent;
  color: #c62828;
  border: 1px solid #c62828;
  box-shadow: none;
}

.sso-btn-flat {
  background: transparent;
  color: #757575;
  border: none;
  text-transform: none;
  box-shadow: none;
}

.sso-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 24px;
}

.sso-bottom {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.sso-panel-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.sso-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1976d2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sso-avatar .material-icons {
  font-size: 24px;
}

.sso-panel-title {
  margin: 0 0 0 16px;
  font-size: 1.5rem;
  font-weight: 400;
}

.sso-hint {
  margin: 0 0 16px;
}

.sso-center {
  text-align: center;
}

.sso-muted-icon {
  font-size: 48px;
  color: #bdbdbd;
}

.sso-rules {
  margin-top: 16px;
}

.sso-rules ul {
  padding-left: 20px;
}

.sso-rules .ok {
  text-decoration: line-through;
  color: #2e7d32;
}

.sso-rules-error {
  color: #c10015;
}
